public final class EnumUtil
extends java.lang.Object
| Constructor and Description |
|---|
EnumUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
toDisplayName(java.lang.Enum enumm)
Gets a human readable display name from a enum name
|
static java.lang.String |
toDisplayName(java.lang.Enum enumm,
java.lang.String separator)
Gets a human readable display name from a enum name
|
static java.lang.String |
toDisplayName(java.lang.Enum enumm,
java.lang.String separator,
boolean firstUpper)
Gets a human readable display name from a enum name
|
public static java.lang.String toDisplayName(java.lang.Enum enumm)
public static java.lang.String toDisplayName(java.lang.Enum enumm,
java.lang.String separator)
separator - the separator that should be used (My-Name-Is-David or My Name Is David)public static java.lang.String toDisplayName(java.lang.Enum enumm,
java.lang.String separator,
boolean firstUpper)
separator - the separator that should be used (My-Name-Is-David or My Name Is David)firstUpper - should the first char be uppercase