| org.obe.util.Enum
All known Subclasses: org.obe.util.AbstractEnum,
Enum | public interface Enum extends Comparable,Serializable(Code) | | Represents an enumerated type as described by JDK 1.5. Implementing classes
are expected to provide the following methods:
public static final List<EnumType> VALUES;
public static <EnumType> valueOf(String s);
public static <EnumType> valueOf(int i);
public final List<EnumType> family();
public final String compareTo(Object o);
public final String equals(Object o);
public final int hashcode();
public String toString();
protected final Object clone(Object o) throws CloneNotSupportedException
protected final Object readResolve() throws ObjectStreamException;
author: Adrian Price |
Method Summary | |
List | family() Returns an immutable list of the members of the enumerated type. | int | value() Returns the ordinal value. |
family | List family()(Code) | | Returns an immutable list of the members of the enumerated type.
The family of allowed values. |
value | int value()(Code) | | Returns the ordinal value.
Ordinal value. |
|
|