private static enum JSONWriter.ContainerType extends java.lang.Enum<JSONWriter.ContainerType>
Modifier and Type | Method and Description |
---|---|
static JSONWriter.ContainerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONWriter.ContainerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONWriter.ContainerType ARRAY
public static final JSONWriter.ContainerType OBJECT
public static JSONWriter.ContainerType[] values()
for (JSONWriter.ContainerType c : JSONWriter.ContainerType.values()) System.out.println(c);
public static JSONWriter.ContainerType 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