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