Enum Class JSONLiteral
- All Implemented Interfaces:
Serializable, Comparable<JSONLiteral>, Constable, Formattable, JSONValue
@ClassVersion(sourceVersion="$Id: JSONLiteral.java 1258 2026-06-04 18:33:06Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
public enum JSONLiteral
extends Enum<JSONLiteral>
implements JSONValue
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: JSONLiteral.java 1258 2026-06-04 18:33:06Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.jsonbuilder.JSONLiteral"
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJSONLiteral(String value) Creates a new instance ofJSONLiteral. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal booleanDetects whether this value represents a boolean value.final StringtoString()static JSONLiteralReturns the enum constant of this class with the specified name.static JSONLiteral[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
Represents the JSON literalnull. -
TRUE
Represents the JSON literaltrue. -
FALSE
Represents the JSON literalfalse.
-
-
Field Details
-
m_Value
-
-
Constructor Details
-
JSONLiteral
Creates a new instance ofJSONLiteral.- Parameters:
value- The value.
-
-
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
-
formatTo
-
isBoolean
-
toString
-
