org.springframework.core.enums
Class AbstractLabeledEnum
java.lang.Object
org.springframework.core.enums.AbstractLabeledEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, LabeledEnum
- Direct Known Subclasses:
- AbstractGenericLabeledEnum, StaticLabeledEnum
public abstract class AbstractLabeledEnum
- extends java.lang.Object
- implements LabeledEnum
Abstract base superclass for LabeledEnum implementations.
- Since:
- 1.2.2
- Author:
- Keith Donald, Juergen Hoeller, Sam Brannen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractLabeledEnum
protected AbstractLabeledEnum()
- Create a new AbstractLabeledEnum instance.
getType
public java.lang.Class getType()
- Description copied from interface:
LabeledEnum
- Return this enumeration's type.
- Specified by:
getType
in interface LabeledEnum
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2002-2008 The Spring Framework.