Package chemaxon.jchem.db.cache
Enum CacheManager.CacheRemovalMethodImplementation
- java.lang.Object
-
- java.lang.Enum<CacheManager.CacheRemovalMethodImplementation>
-
- chemaxon.jchem.db.cache.CacheManager.CacheRemovalMethodImplementation
-
- All Implemented Interfaces:
chemaxon.jchem.db.cache.CacheRemovalMethod
,Serializable
,Comparable<CacheManager.CacheRemovalMethodImplementation>
- Enclosing class:
- CacheManager
public static enum CacheManager.CacheRemovalMethodImplementation extends Enum<CacheManager.CacheRemovalMethodImplementation> implements chemaxon.jchem.db.cache.CacheRemovalMethod
For internal use only.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE_REMOVAL_METHOD_LOADTIME
CACHE_REMOVAL_METHOD_LRU
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<chemaxon.jchem.db.cache.JChemCache>
getCacheRemovalComparator()
static chemaxon.jchem.db.cache.CacheRemovalMethod
getDefaultCacheRemovalMethod()
static CacheManager.CacheRemovalMethodImplementation
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheManager.CacheRemovalMethodImplementation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CACHE_REMOVAL_METHOD_LRU
public static final CacheManager.CacheRemovalMethodImplementation CACHE_REMOVAL_METHOD_LRU
-
CACHE_REMOVAL_METHOD_LOADTIME
public static final CacheManager.CacheRemovalMethodImplementation CACHE_REMOVAL_METHOD_LOADTIME
-
-
Method Detail
-
values
public static CacheManager.CacheRemovalMethodImplementation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CacheManager.CacheRemovalMethodImplementation c : CacheManager.CacheRemovalMethodImplementation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CacheManager.CacheRemovalMethodImplementation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultCacheRemovalMethod
public static chemaxon.jchem.db.cache.CacheRemovalMethod getDefaultCacheRemovalMethod()
-
getCacheRemovalComparator
public Comparator<chemaxon.jchem.db.cache.JChemCache> getCacheRemovalComparator()
- Specified by:
getCacheRemovalComparator
in interfacechemaxon.jchem.db.cache.CacheRemovalMethod
-
-