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
  • 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 the Field, which is representing that value, which in tern means that it will return the default value.
    • SET_NULL

      public static final NullReadHandleOption SET_NULL
      If this constant is set, it tells the resolver that if we get a null value it will bind it to the Field, which is representing that value.
  • Method Details

    • values

      public static NullReadHandleOption[] 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

      public static NullReadHandleOption valueOf(String name)
      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 name
      NullPointerException - if the argument is null