com.google.common.base
@GwtCompatible @Beta public final class Enums extends java.lang.Object
Enum instances.| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Enum<T>> |
valueOfFunction(java.lang.Class<T> enumClass)
|
public static <T extends java.lang.Enum<T>> Function<java.lang.String,T> valueOfFunction(java.lang.Class<T> enumClass)
Function that maps an Enum name to the associated
Enum constant. The Function will return null if the
Enum constant does not exist.enumClass - the Class of the Enum declaring the
constant values.