T - enumeration type - must implement EnumUtil.IEnumIntValuepublic static class EnumUtil.EnumMapper<T extends EnumUtil.IEnumIntValue> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
enumFor(int value)
Looks up enumeration constant for specified value.
|
List<T> |
getList() |
int |
valueFor(T enumValue)
Convenience method - returns int value associated with specified enumeration constant.
Returns same value as EnumUtil.IEnumIntValue.getValue(). |
public T enumFor(int value)
value - for which to return enumeration constantpublic int valueFor(T enumValue)
EnumUtil.IEnumIntValue.getValue().enumValue - for which to return associated integer valueCopyright © 2014. All rights reserved.