MotechEnumUtils¶
-
public final class
MotechEnumUtils
¶ Misc enum-related helper functions
Methods¶
toEnumSet¶
toEnumSet¶
-
public static <T extends Enum> Set<T>
toEnumSet
(Class<T> enumClass, String csv)¶ Returns a set of enums given a comma separated string and an enum class
Parameters: - enumClass – the enum class
- csv – a comma separated string representing a set of enum values
Returns: the enum set constructed from the given string