Package snap.util
Class EnumUtils
java.lang.Object
snap.util.EnumUtils
Utility methods for Enums.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T>>
T[]getEnumArrayFromNamesString
(Class<T> enumType, String aName) Returns an enum array for a string of enum names separated by commas.getNamesFromCamelCaseEnumClass
(Class<T> enumClass) Returns an array of enum name strings adding spaces between camel case chars.static String
getNamesStringFromEnumArray
(Enum[] anEnumArray) Returns a string with names separated by comma for array of enums.static <T extends Enum<T>>
TReturns an enum for enum class and string, ignoring case.
-
Constructor Details
-
EnumUtils
public EnumUtils()
-
-
Method Details
-
valueOfIC
Returns an enum for enum class and string, ignoring case. -
getNamesFromCamelCaseEnumClass
Returns an array of enum name strings adding spaces between camel case chars. -
getNamesStringFromEnumArray
Returns a string with names separated by comma for array of enums. -
getEnumArrayFromNamesString
Returns an enum array for a string of enum names separated by commas.
-