|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.enums.AbstractLabeledEnum
public abstract class AbstractLabeledEnum
Abstract base superclass for LabeledEnum implementations.
Field Summary |
---|
Fields inherited from interface org.springframework.core.enums.LabeledEnum |
---|
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER |
Constructor Summary | |
---|---|
protected |
AbstractLabeledEnum()
Create a new AbstractLabeledEnum instance. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
|
abstract Comparable |
getCode()
Return this enumeration's code. |
abstract String |
getLabel()
Return a descriptive, optional label. |
Class |
getType()
Return this enumeration's type. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractLabeledEnum()
Method Detail |
---|
public Class getType()
LabeledEnum
getType
in interface LabeledEnum
public abstract Comparable getCode()
LabeledEnum
Each code should be unique within enumeration's of the same type.
getCode
in interface LabeledEnum
public abstract String getLabel()
LabeledEnum
getLabel
in interface LabeledEnum
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean equals(Object obj)
public int hashCode()
public String toString()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |