@Deprecated public class LetterCodedLabeledEnum 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.
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER
Constructor and Description |
---|
LetterCodedLabeledEnum(char code,
String label)
Deprecated.
Create a new LetterCodedLabeledEnum instance.
|
Modifier and Type | Method and Description |
---|---|
Comparable |
getCode()
Deprecated.
Return this enumeration's code.
|
char |
getLetterCode()
Deprecated.
Return the letter code of this LabeledEnum instance.
|
getLabel
public LetterCodedLabeledEnum(char code, String label)
code
- the letter codelabel
- the label (can be null
)public Comparable getCode()
LabeledEnum
Each code should be unique within enumerations of the same type.
public char getLetterCode()