public final class Enums extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static <E extends Enum<E>> | enumSetFromString(String s,
                 Class<E> elementType)Creates an  EnumSetfrom the given string. | 
| static Collection<Integer> | ordinals(Collection<? extends Enum<?>> enumSet) | 
| static <E extends Enum<E>> | valueOf(String name,
       Class<E> enumType)Returns the enum constant of the enumType with the specified name. | 
public static Collection<Integer> ordinals(Collection<? extends Enum<?>> enumSet)
public static <E extends Enum<E>> EnumSet<E> enumSetFromString(String s, Class<E> elementType)
EnumSet from the given string. The string must have one of the following formats:
 '[]'enum-constant'[' enum-constant { ',' enum-constant } ']'
    enum-constant := java-identifier-start { java-identifier-part }
 
EnumSetpublic static <E extends Enum<E>> E valueOf(String name, Class<E> enumType)
IllegalArgumentException - The enumType has no constant with the specified nameCopyright © 2018 Arno Unkrig. All rights reserved.