|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Deprecated public interface LabeledEnum
An interface for objects that represent a labeled enumeration. Each such enum instance has the following characteristics:
com.mycompany.util.FileFormat.
| Field Summary | |
|---|---|
static Comparator |
CODE_ORDER
Deprecated. Shared Comparator instance that sorts enumerations by CODE_ORDER. |
static Comparator |
DEFAULT_ORDER
Deprecated. Shared Comparator instance that sorts enumerations by LABEL_ORDER,
then CODE_ORDER. |
static Comparator |
LABEL_ORDER
Deprecated. Shared Comparator instance that sorts enumerations by LABEL_ORDER. |
| Method Summary | |
|---|---|
Comparable |
getCode()
Deprecated. Return this enumeration's code. |
String |
getLabel()
Deprecated. Return a descriptive, optional label. |
Class |
getType()
Deprecated. 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 enumerations of the same type.
String getLabel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||