|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.common.base.Enums
@GwtCompatible @Beta public final class Enums
Utility methods for working with Enum instances.
| Method Summary | ||
|---|---|---|
static
|
valueOfFunction(java.lang.Class<T> enumClass)
Returns a Function that maps an Enum name to the associated
Enum constant. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||