Enum NullReadHandleOption
java.lang.Object
java.lang.Enum<NullReadHandleOption>
com.mrivanplays.annotationconfig.core.resolver.settings.NullReadHandleOption
- All Implemented Interfaces:
Serializable
,Comparable<NullReadHandleOption>
,java.lang.constant.Constable
Represents a simple 2 option enum, which is telling the resolver how to handle null values, which
have been deserialized, but the deserialized value returned null.
- Since:
- 2.0.0
- Author:
- MrIvanPlays
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf this constant is set, it tells the resolver that if we get a null value it will bind it to theField
, which is representing that value.If this constant is set, it tells the resolver that if we get a null value it will skip binding it to theField
, which is representing that value, which in tern means that it will return the default value. -
Method Summary
Modifier and TypeMethodDescriptionstatic NullReadHandleOption
Returns the enum constant of this type with the specified name.static NullReadHandleOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USE_DEFAULT_VALUE
If this constant is set, it tells the resolver that if we get a null value it will skip binding it to theField
, which is representing that value, which in tern means that it will return the default value. -
SET_NULL
If this constant is set, it tells the resolver that if we get a null value it will bind it to theField
, which is representing that value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-