- java.lang.Object
-
- java.lang.Enum<JsonObjectBuilderImpl.DuplicateStrategy>
-
- org.eclipse.parsson.JsonObjectBuilderImpl.DuplicateStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonObjectBuilderImpl.DuplicateStrategy>
- Enclosing class:
- JsonObjectBuilderImpl
private static enum JsonObjectBuilderImpl.DuplicateStrategy extends java.lang.Enum<JsonObjectBuilderImpl.DuplicateStrategy>
-
-
Field Summary
Fields Modifier and Type Field Description private jakarta.json.JsonConfig.KeyStrategy
property
-
Constructor Summary
Constructors Modifier Constructor Description private
DuplicateStrategy(jakarta.json.JsonConfig.KeyStrategy property)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract jakarta.json.JsonValue
getValue(java.lang.String name, jakarta.json.JsonValue value, jakarta.json.JsonValue previous)
private static JsonObjectBuilderImpl.DuplicateStrategy
strategyFromProperty(java.lang.Object value, boolean rejectDuplicateKeys)
static JsonObjectBuilderImpl.DuplicateStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonObjectBuilderImpl.DuplicateStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final JsonObjectBuilderImpl.DuplicateStrategy NONE
-
FIRST
public static final JsonObjectBuilderImpl.DuplicateStrategy FIRST
-
LAST
public static final JsonObjectBuilderImpl.DuplicateStrategy LAST
-
-
Method Detail
-
values
public static JsonObjectBuilderImpl.DuplicateStrategy[] 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 (JsonObjectBuilderImpl.DuplicateStrategy c : JsonObjectBuilderImpl.DuplicateStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonObjectBuilderImpl.DuplicateStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
strategyFromProperty
private static JsonObjectBuilderImpl.DuplicateStrategy strategyFromProperty(java.lang.Object value, boolean rejectDuplicateKeys)
-
getValue
protected abstract jakarta.json.JsonValue getValue(java.lang.String name, jakarta.json.JsonValue value, jakarta.json.JsonValue previous)
-
-