public final class EnumUtils
extends Object
-
Method Summary
static <T extends Enum<T>,
K>
T
static <T extends Enum<T>>
T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
enumByOrdinal
@NotNull
public static <T extends Enum<T>> T enumByOrdinal(@NotNull
@NotNull Class<T> enumType,
int ordinal)
-
enumByKey
@NotNull
public static <T extends Enum<T>,
K> T enumByKey(@NotNull
@NotNull Class<T> enumType,
@NotNull
@NotNull Function<T,K> keyFunction,
@NotNull
K key)