@Deprecated public interface LabeledEnum extends Comparable, Serializable
com.mycompany.util.FileFormat
.Modifier and Type | Field and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
Comparable |
getCode()
Deprecated.
Return this enumeration's code.
|
String |
getLabel()
Deprecated.
Return a descriptive, optional label.
|
Class |
getType()
Deprecated.
Return this enumeration's type.
|
compareTo
static final Comparator CODE_ORDER
CODE_ORDER
.static final Comparator LABEL_ORDER
LABEL_ORDER
.static final Comparator DEFAULT_ORDER
LABEL_ORDER
,
then CODE_ORDER
.Class getType()
Comparable getCode()
Each code should be unique within enumerations of the same type.
String getLabel()