java.lang.Object
jsonvalues.JsPrimitive
jsonvalues.JsBool
- All Implemented Interfaces:
JsValue
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this json boolean.int
hashCode()
Returns the hashcode of this json boolean.boolean
isBool()
Returns true if this JsValue is a JsBoolboolean
isFalse()
Returns true if this JsValue is a JsBool, and it's falseboolean
isTrue()
Returns true if this JsValue is a JsBool, and it's truestatic JsBool
of
(boolean b) Static factory method to create a JsBool from a boolean primitive type.toString()
Methods inherited from class jsonvalues.JsPrimitive
isJson, isPrimitive
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jsonvalues.JsValue
ifNothing, ifNull, isArray, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isBinary, isDecimal, isDouble, isDouble, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isLong, isLong, isNothing, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isSameType, isStr, isStr, toJsArray, toJsBigDec, toJsBigInt, toJsBinary, toJsBool, toJsDouble, toJsInstant, toJsInt, toJsLong, toJsNumber, toJsObj, toJson, toJsStr
-
Field Details
-
FALSE
The singleton false value. -
TRUE
The singleton true value. -
prism
prism between the sum type JsValue and JsBool -
value
public final boolean valuethe boolean value.
-
-
Method Details
-
of
Static factory method to create a JsBool from a boolean primitive type. -
toJsPrimitive
-
isBool
public boolean isBool()Description copied from interface:JsValue
Returns true if this JsValue is a JsBool- Returns:
- true if this JsValue is a JsBool
-
isTrue
public boolean isTrue()Description copied from interface:JsValue
Returns true if this JsValue is a JsBool, and it's true- Returns:
- true if this JsValue is a JsBool, and it's true
-
isFalse
public boolean isFalse()Description copied from interface:JsValue
Returns true if this JsValue is a JsBool, and it's false- Returns:
- true if this JsValue is a JsBool, and it's false
-
hashCode
public int hashCode()Returns the hashcode of this json boolean. -
equals
Indicates whether some other object is "equal to" this json boolean. -
toString
-