public class EnumConverter
extends Object
-
Constructor Summary
Constructors
-
Method Summary
static <T extends Enum<T>>
T
static <T extends Enum<T>>
T
static <T extends Enum<T>>
T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EnumConverter
public EnumConverter()
-
Method Details
-
toNullableEnum
public static <T extends Enum<T>> T toNullableEnum(Class<T> type,
Object value)
-
-
toEnumWithDefault
public static <T extends Enum<T>> T toEnumWithDefault(Class<T> type,
Object value,
T defaultValue)