Enum Class EnumListSetting.BadKeyBehavior
java.lang.Object
java.lang.Enum<EnumListSetting.BadKeyBehavior>
gg.xp.xivsupport.persistence.settings.EnumListSetting.BadKeyBehavior
- All Implemented Interfaces:
Serializable
,Comparable<EnumListSetting.BadKeyBehavior>
,Constable
- Enclosing class:
- EnumListSetting<X extends Enum<X>>
Behavior for if a property cdKey does not map to a valid enum member
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOmit the value but read the rest in orderReturn the default value, i.e.Throw an IllegalArgumentException -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EnumListSetting.BadKeyBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THROW
Throw an IllegalArgumentException -
OMIT
Omit the value but read the rest in order -
RETURN_DEFAULT
Return the default value, i.e. pretend the property was never saved
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-