Serializable, Comparable<Option>public enum Option extends Enum<Option>
| Enum Constant | Description |
|---|---|
COMPARING_ONLY_STRUCTURE |
Deprecated.
Use IGNORING_VALUES option instead
|
IGNORING_ARRAY_ORDER |
When comparing arrays, ignores array order.
|
IGNORING_EXTRA_ARRAY_ITEMS |
Passes even if array in compared document has more items than expected.
|
IGNORING_EXTRA_FIELDS |
Ignores extra fields in the actual value.
|
IGNORING_VALUES |
Ignores values but fails if value types are different.
|
TREATING_NULL_AS_ABSENT |
Treats null nodes in actual value as absent.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Option |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Option[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Option TREATING_NULL_AS_ABSENT
public static final Option IGNORING_ARRAY_ORDER
public static final Option IGNORING_EXTRA_FIELDS
public static final Option IGNORING_EXTRA_ARRAY_ITEMS
@Deprecated public static final Option COMPARING_ONLY_STRUCTURE
IGNORING_VALUES instead.public static final Option IGNORING_VALUES
public static Option[] values()
for (Option c : Option.values()) System.out.println(c);
public static Option valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.