|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jniwrapper.util.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)
Lookups an enumeration item for the specified value and returns the 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 - class containing enumeration items.value - 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 | ||||||||||