Package org.h2.util.json
Class JSONBoolean
- java.lang.Object
-
- org.h2.util.json.JSONValue
-
- org.h2.util.json.JSONBoolean
-
public class JSONBoolean extends JSONValue
JSON boolean.
-
-
Field Summary
Fields Modifier and Type Field Description static JSONBoolean
FALSE
false
value.static JSONBoolean
TRUE
true
value.private boolean
value
-
Constructor Summary
Constructors Modifier Constructor Description private
JSONBoolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(JSONTarget<?> target)
Appends this value to the specified target.boolean
getBoolean()
Returns the value.
-
-
-
Field Detail
-
FALSE
public static final JSONBoolean FALSE
false
value.
-
TRUE
public static final JSONBoolean TRUE
true
value.
-
value
private final boolean value
-
-
Method Detail
-
addTo
public void addTo(JSONTarget<?> target)
Description copied from class:JSONValue
Appends this value to the specified target.
-
getBoolean
public boolean getBoolean()
Returns the value.- Returns:
- the value
-
-