public static enum JsonWriter.EnumerableFormat extends java.lang.Enum<JsonWriter.EnumerableFormat>
Enum Constant and Description |
---|
NUMBER
Print as JSON integral value.
|
STRING
Print as JSON string according to the following rules:
Enums
when an exact match with an enumerable item is found, the item name is used - e.g.
|
Modifier and Type | Method and Description |
---|---|
static JsonWriter.EnumerableFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonWriter.EnumerableFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonWriter.EnumerableFormat NUMBER
public static final JsonWriter.EnumerableFormat STRING
"FIRST"
,
"10 /* no match */"
.
"READ | WRITE"
,
"127 /* READ | CREATE */"
,
"13 /* no match */"
.
public static JsonWriter.EnumerableFormat[] values()
for (JsonWriter.EnumerableFormat c : JsonWriter.EnumerableFormat.values()) System.out.println(c);
public static JsonWriter.EnumerableFormat 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 nullLast updated 2024-12-05 10:34:50