|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(String label)
Create a new AbstractLabeledEnum instance with the given label. |
| Method Summary | |
|---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
|
abstract Comparable |
getCode()
This abstract method declaration shadows the method in the LabeledEnum interface. |
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(String label)
| Method Detail |
|---|
public Class getType()
LabeledEnum
getType in interface LabeledEnumpublic abstract Comparable getCode()
getCode in interface LabeledEnumpublic String getLabel()
LabeledEnum
getLabel in interface LabeledEnumpublic int compareTo(Object obj)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||