|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nativelibs4java.util.EnumValues
public class EnumValues
Methods to ease conversion between EnumValue-annotated enums and their integer value.
| Constructor Summary | |
|---|---|
EnumValues()
|
|
| Method Summary | ||
|---|---|---|
static
|
getEnum(long value,
Class<E> enumClass)
Get the first enum item in enum class E which EnumValue value is equal to value |
|
static
|
getEnumSet(long value,
Class<E> enumClass)
Get the set of all the enum item in enum class E which EnumValue value flags are all present in value |
|
static
|
getValue(E enumItem)
Get the integer value associated with an enum item |
|
static
|
getValue(EnumSet<E> set)
Get the integer value resulting from ORing all the values of all the enum items present in the enum set. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumValues()
| Method Detail |
|---|
public static <E extends Enum<E>> E getEnum(long value,
Class<E> enumClass)
E - type of the enumvalue - enumClass -
public static <E extends Enum<E>> EnumSet<E> getEnumSet(long value,
Class<E> enumClass)
E - type of the enumvalue - enumClass -
public static <E extends Enum<?>> long getValue(E enumItem)
enumItem -
EnumValuepublic static <E extends Enum<E>> long getValue(EnumSet<E> set)
set - the EnumSet to process
getValue(java.lang.Enum),
EnumValue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||