@Deprecated public class StringCodedLabeledEnum extends AbstractGenericLabeledEnum
Should almost always be subclassed, but for some simple situations it may be
used directly. Note that you will not be able to use unique type-based
functionality like LabeledEnumResolver.getLabeledEnumSet(type)
in this case.
LabeledEnumResolver.getLabeledEnumSet(Class)
,
Serialized FormCODE_ORDER, DEFAULT_ORDER, LABEL_ORDER
Constructor and Description |
---|
StringCodedLabeledEnum(String code,
String label)
Deprecated.
Create a new StringCodedLabeledEnum instance.
|
Modifier and Type | Method and Description |
---|---|
Comparable |
getCode()
Deprecated.
Return this enumeration's code.
|
String |
getStringCode()
Deprecated.
Return the String code of this LabeledEnum instance.
|
getLabel
public Comparable getCode()
LabeledEnum
Each code should be unique within enumerations of the same type.
public String getStringCode()