|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.enums.AbstractLabeledEnum org.springframework.core.enums.AbstractGenericLabeledEnum org.springframework.core.enums.LetterCodedLabeledEnum
@Deprecated public class LetterCodedLabeledEnum
Implementation of LabeledEnum which uses a letter as the code type.
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.
Field Summary | |
---|---|
private java.lang.Character |
code
Deprecated. The unique code of this enum. |
Fields inherited from interface org.springframework.core.enums.LabeledEnum |
---|
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER |
Constructor Summary | |
---|---|
LetterCodedLabeledEnum(char code,
java.lang.String label)
Deprecated. Create a new LetterCodedLabeledEnum instance. |
Method Summary | |
---|---|
java.lang.Comparable |
getCode()
Deprecated. Return this enumeration's code. |
char |
getLetterCode()
Deprecated. Return the letter code of this LabeledEnum instance. |
Methods inherited from class org.springframework.core.enums.AbstractGenericLabeledEnum |
---|
getLabel |
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum |
---|
compareTo, equals, getType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.Character code
Constructor Detail |
---|
public LetterCodedLabeledEnum(char code, java.lang.String label)
code
- the letter codelabel
- the label (can be null
)Method Detail |
---|
public java.lang.Comparable getCode()
LabeledEnum
Each code should be unique within enumerations of the same type.
public char getLetterCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |