|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LabeledEnum
A interface for objects that represent a labled enumeration. Each such enum instance has the following characteristics:
com.mycompany.util.FileFormat.
| Field Summary | |
|---|---|
static Comparator |
CODE_ORDER
Shared Comparator instance that sorts enumerations by CODE_ORDER. |
static Comparator |
DEFAULT_ORDER
Shared Comparator instance that sorts enumerations by LABEL_ORDER,
then CODE_ORDER. |
static Comparator |
LABEL_ORDER
Shared Comparator instance that sorts enumerations by LABEL_ORDER. |
| Method Summary | |
|---|---|
Comparable |
getCode()
Return this enumeration's code. |
String |
getLabel()
Return a descriptive, optional label. |
Class |
getType()
Return this enumeration's type. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final Comparator CODE_ORDER
CODE_ORDER.
static final Comparator LABEL_ORDER
LABEL_ORDER.
static final Comparator DEFAULT_ORDER
LABEL_ORDER,
then CODE_ORDER.
| Method Detail |
|---|
Class getType()
Comparable getCode()
Each code should be unique within enumeration's of the same type.
String getLabel()
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||