|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- public interface EnumConverter<K>
An interface that allows an Enum to be converted to another type, such as an integer or long. Useful in cases where the Java assigned ordinal just isn't reliable enough or is unable to represent the values we need.
Implementers should also implement (though there is no way of requiring it)
a static method for taking the conversion the other way:
public static Enum convert (K value);
Method Summary | |
---|---|
K |
convert()
Convert the enum to another type. |
Method Detail |
---|
K convert()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |