Package com.im.df.util
Class CTFavourite
- java.lang.Object
-
- com.im.df.util.CTFavourite
-
public final class CTFavourite extends Object
Chemical terms favourite- Author:
- Petr Hamernik
-
-
Field Summary
Fields Modifier and Type Field Description static intPOPULARITY_DEFAULTMedium (default) importance of templatestatic intPOPULARITY_MAXOften used template - will be in top of the list when sorted by popularitystatic intPOPULARITY_MINLess frequent (important) template
-
Constructor Summary
Constructors Constructor Description CTFavourite(Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability> type, String displayName, String ct)CTFavourite(Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability> type, String displayName, String expr, int popularity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDisplayName()Get the display name of the CT favouriteStringgetExpression()Get the expression of the chemical terms favouriteintgetPopularity()Get a value, how frequent (popular) is this favourite.Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability>getType()Expected default return type - one of theDFFieldDataTypeCapabilitysubinterfaces.inthashCode()
-
-
-
Field Detail
-
POPULARITY_MIN
public static final int POPULARITY_MIN
Less frequent (important) template- See Also:
- Constant Field Values
-
POPULARITY_DEFAULT
public static final int POPULARITY_DEFAULT
Medium (default) importance of template- See Also:
- Constant Field Values
-
POPULARITY_MAX
public static final int POPULARITY_MAX
Often used template - will be in top of the list when sorted by popularity- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability> getType()
Expected default return type - one of theDFFieldDataTypeCapabilitysubinterfaces.- Returns:
- The class of the capability of the default return type
-
getDisplayName
public String getDisplayName()
Get the display name of the CT favourite
-
getExpression
public String getExpression()
Get the expression of the chemical terms favourite
-
getPopularity
public int getPopularity()
Get a value, how frequent (popular) is this favourite. This value can be used for some specific type of sorting list of favourites.
-
-