public class EnumUtil
extends java.lang.Object
Constructor and Description |
---|
EnumUtil() |
Modifier and Type | Method and Description |
---|---|
static <P extends PersistentId> |
fromPersistentId(int id,
P[] values)
Returns the enum that matches the given persistent ID
|
static <P extends PersistentName> |
fromPersistentName(java.lang.String code,
P[] values)
Returns the enum that matches the given persistent CODE.
|
static <P extends PersistentName> |
fromPersistentName(java.lang.String code,
P[] values,
boolean isCaseSensitive)
Returns the enum that matches the given persistent CODE
|
public static <P extends PersistentId> P fromPersistentId(int id, P[] values)
public static <P extends PersistentName> P fromPersistentName(java.lang.String code, P[] values)
public static <P extends PersistentName> P fromPersistentName(java.lang.String code, P[] values, boolean isCaseSensitive)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.