Enum Class JsonHelper.MergeOption

java.lang.Object
java.lang.Enum<JsonHelper.MergeOption>
org.kiwiproject.json.JsonHelper.MergeOption
All Implemented Interfaces:
Serializable, Comparable<JsonHelper.MergeOption>, Constable
Enclosing class:
JsonHelper

public static enum JsonHelper.MergeOption extends Enum<JsonHelper.MergeOption>
Describes how objects are to be merged.
See Also:
  • Enum Constant Details

    • MERGE_ARRAYS

      public static final JsonHelper.MergeOption MERGE_ARRAYS
      This option will cause arrays to be merged rather than replaced. The default is that arrays will be replaced with a new value. Specify this option to merge them instead.
    • IGNORE_NULLS

      public static final JsonHelper.MergeOption IGNORE_NULLS
      This option will ignore null values in an update object. The default is to respect null values and set the updated value to null. Specify this option to ignore nulls instead.
  • Method Details

    • values

      public static JsonHelper.MergeOption[] 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

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