public class EnumUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
EnumUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <S,E extends Enum<E> & CodeLookup<S>> |
getByCode(Class<E> clazz,
S code) |
static <I,E extends Enum<E> & IdLookup<I>> |
getById(Class<E> clazz,
I id) |
static <I,E extends Enum<E> & IdLookup<I>> |
getByIds(Class<E> clazz,
List<I> ids) |
public static <I,E extends Enum<E> & IdLookup<I>> E getById(Class<E> clazz, I id)
clazz - an Enum class implementing IdLookup<I>id - an instance of type Ipublic static <S,E extends Enum<E> & CodeLookup<S>> E getByCode(Class<E> clazz, S code)
clazz - an Enum class implementing CodeLookup<S>code - an instance of type SCopyright © 2017. All rights reserved.