ca.uhn.cache
Class VolatilityEnum
java.lang.Object
org.apache.commons.lang.enum.Enum
ca.uhn.cache.VolatilityEnum
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class VolatilityEnum
- extends org.apache.commons.lang.enum.Enum
- implements java.lang.Comparable
Type safe codes for data volatility.
- Version:
- $Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:04 $ by $Author: bryan_tripp $
- Author:
- Bryan Tripp
- See Also:
- Serialized Form
Fields inherited from class org.apache.commons.lang.enum.Enum |
iToString |
Constructor Summary |
protected |
VolatilityEnum(java.lang.String theName,
int theLevel)
|
Methods inherited from class org.apache.commons.lang.enum.Enum |
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
STABLE
public static final VolatilityEnum STABLE
- Describes data that are unlikely to change (e.g. have been labelled
"final").
VOLATILE
public static final VolatilityEnum VOLATILE
- Describes data that are likely to change (e.g. have been labelled
"incomplete").
VolatilityEnum
protected VolatilityEnum(java.lang.String theName,
int theLevel)
- Parameters:
theName
- text code for volatilitytheLevel
- level of volatility, for ordering purposes (lower means more volatile)
getLevel
protected java.lang.Integer getLevel()
- Returns:
- an Integer level for ordering (lower means more volatile)
getEnum
public static VolatilityEnum getEnum(java.lang.String theName)
- Parameters:
theName
- name of desired VolatilityEnum
- Returns:
VolatilityEnum
that has the given name.
getEnumList
public static java.util.List getEnumList()
- Returns:
- List of all
VolatilityEnum
.
compareTo
public int compareTo(java.lang.Object theObject)
- Ordering from most to least volatile.
- Specified by:
compareTo
in interface java.lang.Comparable
- See Also:
Comparable.compareTo(java.lang.Object)
Copyright © 2004-2005 University Health Network. All Rights Reserved.