| org.springframework.core.enums.LabeledEnum |
Known Indirect Subclasses
|
This interface is deprecated.
as of Spring 3.0, in favor of Java 5 enums.
An interface for objects that represent a labeled enumeration. Each such enum instance has the following characteristics:
com.mycompany.util.FileFormat.| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CODE_ORDER | Shared Comparator instance that sorts enumerations by CODE_ORDER. |
||||||||||
| DEFAULT_ORDER | Shared Comparator instance that sorts enumerations by LABEL_ORDER,
then CODE_ORDER. |
||||||||||
| LABEL_ORDER | Shared Comparator instance that sorts enumerations by LABEL_ORDER. |
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return this enumeration's code.
| |||||||||||
Return a descriptive, optional label.
| |||||||||||
Return this enumeration's type.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.lang.Comparable
| |||||||||||
Shared Comparator instance that sorts enumerations by CODE_ORDER.
Shared Comparator instance that sorts enumerations by LABEL_ORDER,
then CODE_ORDER.
Shared Comparator instance that sorts enumerations by LABEL_ORDER.
Return this enumeration's code.
Each code should be unique within enumerations of the same type.