public class Enums
extends java.lang.Object
EnumItem
. Constructor and Description |
---|
Enums() |
Modifier and Type | Method and Description |
---|---|
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. |
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.