Package org.openapitools.codegen.utils
Enum JsonCache.Root.MergePolicy
- java.lang.Object
-
- java.lang.Enum<JsonCache.Root.MergePolicy>
-
- org.openapitools.codegen.utils.JsonCache.Root.MergePolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonCache.Root.MergePolicy>
- Enclosing interface:
- JsonCache.Root
public static enum JsonCache.Root.MergePolicy extends Enum<JsonCache.Root.MergePolicy>
Describes cache behaviour when a load method is called for a cache instance that is already loaded.
-
-
Enum Constant Summary
Enum Constants Enum Constant 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 toload()
methods are ignored when the cache is already loaded.OVERWRITE_EXISTING
Overwrites existing root properties with incoming duplicate properties.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NO_MERGE
public static final JsonCache.Root.MergePolicy NO_MERGE
Calls toload()
methods are ignored when the cache is already loaded.
-
MERGE_RECURSIVE
public static final JsonCache.Root.MergePolicy MERGE_RECURSIVE
Recursively merges the incoming tree into the existing tree, retaining existing leaf properties.
-
KEEP_EXISTING
public static final JsonCache.Root.MergePolicy KEEP_EXISTING
Retains existing root properties, ignoring incoming duplicate properties.
-
OVERWRITE_EXISTING
public static final JsonCache.Root.MergePolicy OVERWRITE_EXISTING
Overwrites existing root properties with incoming duplicate properties.
-
-
Method Detail
-
values
public static JsonCache.Root.MergePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonCache.Root.MergePolicy c : JsonCache.Root.MergePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonCache.Root.MergePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-