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 int
POPULARITY_DEFAULT
Medium (default) importance of templatestatic int
POPULARITY_MAX
Often used template - will be in top of the list when sorted by popularitystatic int
POPULARITY_MIN
Less 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 boolean
equals(Object obj)
String
getDisplayName()
Get the display name of the CT favouriteString
getExpression()
Get the expression of the chemical terms favouriteint
getPopularity()
Get a value, how frequent (popular) is this favourite.Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability>
getType()
Expected default return type - one of theDFFieldDataTypeCapability
subinterfaces.int
hashCode()
-
-
-
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 theDFFieldDataTypeCapability
subinterfaces.- 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.
-
-