public static enum JSONMergeUtils.ConflictStrategy extends java.lang.Enum<JSONMergeUtils.ConflictStrategy>
Enum Constant and Description |
---|
MERGE_INTO_ARRAY |
PREFER_FIRST_OBJECT |
PREFER_NON_NULL |
PREFER_SECOND_OBJECT |
THROW_EXCEPTION |
Modifier and Type | Method and Description |
---|---|
static JSONMergeUtils.ConflictStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONMergeUtils.ConflictStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONMergeUtils.ConflictStrategy THROW_EXCEPTION
public static final JSONMergeUtils.ConflictStrategy PREFER_FIRST_OBJECT
public static final JSONMergeUtils.ConflictStrategy PREFER_SECOND_OBJECT
public static final JSONMergeUtils.ConflictStrategy MERGE_INTO_ARRAY
public static final JSONMergeUtils.ConflictStrategy PREFER_NON_NULL
public static JSONMergeUtils.ConflictStrategy[] values()
for (JSONMergeUtils.ConflictStrategy c : JSONMergeUtils.ConflictStrategy.values()) System.out.println(c);
public static JSONMergeUtils.ConflictStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.