org.springframework.core.enums
Class AbstractGenericLabeledEnum
java.lang.Object
org.springframework.core.enums.AbstractLabeledEnum
org.springframework.core.enums.AbstractGenericLabeledEnum
- All Implemented Interfaces:
- Serializable, Comparable, LabeledEnum
- Direct Known Subclasses:
- LetterCodedLabeledEnum, ShortCodedLabeledEnum, StringCodedLabeledEnum
Deprecated. as of Spring 3.0, in favor of Java 5 enums.
public abstract class AbstractGenericLabeledEnum
- extends AbstractLabeledEnum
Base class for labeled enum instances that aren't static.
- Since:
- 1.2.6
- Author:
- Keith Donald
- See Also:
- Serialized Form
Method Summary |
String |
getLabel()
Deprecated. Return a descriptive, optional label. |
AbstractGenericLabeledEnum
protected AbstractGenericLabeledEnum(String label)
- Deprecated.
- Create a new StaticLabeledEnum instance.
- Parameters:
label
- the label; if null
), the enum's code
will be used as label
getLabel
public String getLabel()
- Deprecated.
- Description copied from interface:
LabeledEnum
- Return a descriptive, optional label.