public static enum JSONConfig.DuplicateMode extends Enum<JSONConfig.DuplicateMode>
JSONObject
,检查在put时key的重复情况Modifier and Type | Method and Description |
---|---|
static JSONConfig.DuplicateMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONConfig.DuplicateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONConfig.DuplicateMode THROW
public static final JSONConfig.DuplicateMode OVERRIDE
public static final JSONConfig.DuplicateMode IGNORE
public static JSONConfig.DuplicateMode[] values()
for (JSONConfig.DuplicateMode c : JSONConfig.DuplicateMode.values()) System.out.println(c);
public static JSONConfig.DuplicateMode 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 © 2025. All rights reserved.