Package com.storedobject.common
Enum Class JSON.Type
- All Implemented Interfaces:
Serializable,Comparable<JSON.Type>,Constable
- Enclosing class:
JSON
Type of JSON values.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
NULL
Represents the null value in JSON. This is used to signify the absence of a value or a null entry in a JSON object or array. -
STRING
Represents a JSON string value. Used to denote textual data encapsulated within double quotes in JSON. -
NUMBER
Represents a JSON numeric value. This is used to denote integers or floating-point numbers in JSON format. -
BOOLEAN
Represents a JSON boolean value. This is used to denote `true` or `false` values in JSON format. -
ARRAY
Represents a JSON array value. This is used to denote an ordered collection of JSON values, which could include objects, arrays, strings, numbers, booleans, or nulls. -
JSON
Represents a JSON object value. This is used to denote an unordered collection of key-value pairs where keys are strings and values can be other JSON types such as objects, arrays, strings, numbers, booleans, or nulls.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-