Package org.kiwiproject.json
Enum Class JsonHelper.MergeOption
- All Implemented Interfaces:
Serializable,Comparable<JsonHelper.MergeOption>,Constable
- Enclosing class:
- JsonHelper
Describes how objects are to be merged.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis option will ignore null values in an update object.This option will cause arrays to be merged rather than replaced. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonHelper.MergeOptionReturns the enum constant of this class with the specified name.static JsonHelper.MergeOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
-