public enum JSONItemType extends Enum<JSONItemType>
| 枚举常量和说明 |
|---|
ARRAY
JSON array.
|
OBJECT
JSON object.
|
SCALAR
JSON scalar value: string, number,
true, false, or
null. |
VALUE
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
includes(JSONItemType type)
Checks whether this item type includes the specified item type.
|
static JSONItemType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JSONItemType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final JSONItemType VALUE
public static final JSONItemType ARRAY
public static final JSONItemType OBJECT
public static final JSONItemType SCALAR
true, false, or
null.public static JSONItemType[] values()
for (JSONItemType c : JSONItemType.values()) System.out.println(c);
public static JSONItemType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean includes(JSONItemType type)
type - item type to checkCopyright © 2022. All rights reserved.