public static enum JsonConfig.KeyStrategy extends java.lang.Enum<JsonConfig.KeyStrategy>
JsonConfig.KEY_STRATEGY
.
See JsonConfig.KEY_STRATEGY
Enum Constant and Description |
---|
FIRST
Configuration value that will take the value of the first match.
|
LAST
Configuration value that will take the value of the last match.
|
NONE
Configuration value that will throw
JsonException when duplicate key is found. |
Modifier and Type | Method and Description |
---|---|
static JsonConfig.KeyStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonConfig.KeyStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonConfig.KeyStrategy FIRST
public static final JsonConfig.KeyStrategy LAST
public static final JsonConfig.KeyStrategy NONE
JsonException
when duplicate key is found.public static JsonConfig.KeyStrategy[] values()
for (JsonConfig.KeyStrategy c : JsonConfig.KeyStrategy.values()) System.out.println(c);
public static JsonConfig.KeyStrategy 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 null