|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.util.Enums
public class Enums
Enums is a utility class that allows to retrieve enumeration from a class
implementing the enumeration pattern using constants of the type EnumItem
.
NOTE: Introduction of native
enumeration support in JDK1.5 will make this functionality obsolete.
Constructor Summary | |
---|---|
Enums()
|
Method Summary | |
---|---|
static EnumItem |
getItem(java.lang.Class enumerationClass,
int value)
Looks up an enumeration item for the specified value and returns an element that corresponds to the passed value. |
static java.util.List |
getItems(java.lang.Class enumerationClass)
Returns enumeration definition as the list of all public static
final members of the type EnumItem
defined in the passed class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Enums()
Method Detail |
---|
public static EnumItem getItem(java.lang.Class enumerationClass, int value)
enumerationClass
- a class containing enumeration items.value
- a value of the enumeration element.
public static java.util.List getItems(java.lang.Class enumerationClass)
public static
final
members of the type EnumItem
defined in the passed class.
enumerationClass
- a class that implements enumeration pattern.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |