org.springframework.core.enums |
Interfaces and classes for type-safe enum support on JDK >= 1.3.
This enum abstraction support codes and labels.
|
Java Source File Name | Type | Comment |
AbstractCachingLabeledEnumResolver.java | Class | Abstract base class for LabeledEnumResolver implementations,
caching all retrieved LabeledEnum instances. |
AbstractGenericLabeledEnum.java | Class | Base class for labeled enum instances that aren't static. |
AbstractLabeledEnum.java | Class | Abstract base superclass for LabeledEnum implementations. |
LabeledEnum.java | Interface | An interface for objects that represent a labeled enumeration.
Each such enum instance has the following characteristics:
- A type that identifies the enum's class.
For example:
com.mycompany.util.FileFormat .
- A code that uniquely identifies the enum within the context of its type.
For example: "CSV".
|
LabeledEnumResolver.java | Interface | Interface for looking up LabeledEnum instances. |
LetterCodedLabeledEnum.java | Class | Implementation of LabeledEnum which uses a letter as the code type.
Should almost always be subclassed, but for some simple situations it may be
used directly. |
ShortCodedLabeledEnum.java | Class | Implementation of LabeledEnum which uses Short as the code type.
Should almost always be subclassed, but for some simple situations it may be
used directly. |
StaticLabeledEnum.java | Class | Base class for static type-safe labeled enum instances. |
StaticLabeledEnumResolver.java | Class | LabeledEnumResolver that resolves statically defined enumerations. |
StringCodedLabeledEnum.java | Class | Implementation of LabeledEnum which uses a String as the code type.
Should almost always be subclassed, but for some simple situations it may be
used directly. |