| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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_ORDERShared Comparator instance that sorts enumerations by CODE_ORDER. | 
| static Comparator | DEFAULT_ORDERShared Comparator instance that sorts enumerations by LABEL_ORDER,
 thenCODE_ORDER. | 
| static Comparator | LABEL_ORDERShared 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 enumerations of the same type.
String getLabel()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||