站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

AbstractLabeledEnum (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core.enums
Class AbstractLabeledEnum

java.lang.Object
  extended by org.springframework.core.enums.AbstractLabeledEnum
All Implemented Interfaces:
Serializable, Comparable, LabeledEnum
Direct Known Subclasses:
AbstractGenericLabeledEnum, StaticLabeledEnum

public abstract class AbstractLabeledEnum
extends Object
implements LabeledEnum

Abstract base superclass for LabeledEnum implementations.

Since:
1.2.2
Author:
Keith Donald
See Also:
Serialized Form

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

AbstractLabeledEnum

protected AbstractLabeledEnum()
Create a new AbstractLabeledEnum instance.

Method Detail

getType

public Class getType()
Description copied from interface: LabeledEnum
Return this enumeration's type.

Specified by:
getType in interface LabeledEnum

getCode

public abstract Comparable getCode()
Description copied from interface: LabeledEnum
Return this enumeration's code. Each code should be unique within enumeration's of the same type.

Specified by:
getCode in interface LabeledEnum

getLabel

public abstract String getLabel()
Description copied from interface: LabeledEnum
Return a descriptive, optional label.

Specified by:
getLabel in interface LabeledEnum

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2002-2007 The Spring Framework Project.