public static enum JsonCache.Root.MergePolicy extends Enum<JsonCache.Root.MergePolicy>
| Enum Constant and Description |
|---|
KEEP_EXISTING
Retains existing root properties, ignoring incoming duplicate properties.
|
MERGE_RECURSIVE
Recursively merges the incoming tree into the existing tree, retaining existing leaf properties.
|
NO_MERGE
Calls to
load() methods are ignored when the cache is already loaded. |
OVERWRITE_EXISTING
Overwrites existing root properties with incoming duplicate properties.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonCache.Root.MergePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonCache.Root.MergePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonCache.Root.MergePolicy NO_MERGE
load() methods are ignored when the cache is already loaded.public static final JsonCache.Root.MergePolicy MERGE_RECURSIVE
public static final JsonCache.Root.MergePolicy KEEP_EXISTING
public static final JsonCache.Root.MergePolicy OVERWRITE_EXISTING
public static JsonCache.Root.MergePolicy[] values()
for (JsonCache.Root.MergePolicy c : JsonCache.Root.MergePolicy.values()) System.out.println(c);
public static JsonCache.Root.MergePolicy 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 © 2021. All rights reserved.