Enum JsonReader.Delimiter
- java.lang.Object
-
- java.lang.Enum<JsonReader.Delimiter>
-
- org.apache.logging.log4j.layout.template.json.util.JsonReader.Delimiter
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonReader.Delimiter>
- Enclosing class:
- JsonReader
private static enum JsonReader.Delimiter extends java.lang.Enum<JsonReader.Delimiter>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_END
ARRAY_START
COLON
COMMA
OBJECT_END
OBJECT_START
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
string
-
Constructor Summary
Constructors Modifier Constructor Description private
Delimiter(java.lang.String string)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
exists(java.lang.Object token)
static JsonReader.Delimiter
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonReader.Delimiter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT_START
public static final JsonReader.Delimiter OBJECT_START
-
OBJECT_END
public static final JsonReader.Delimiter OBJECT_END
-
ARRAY_START
public static final JsonReader.Delimiter ARRAY_START
-
ARRAY_END
public static final JsonReader.Delimiter ARRAY_END
-
COLON
public static final JsonReader.Delimiter COLON
-
COMMA
public static final JsonReader.Delimiter COMMA
-
-
Method Detail
-
values
public static JsonReader.Delimiter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonReader.Delimiter c : JsonReader.Delimiter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonReader.Delimiter valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
exists
private static boolean exists(java.lang.Object token)
-
-