java.lang.Object
jsonvalues.JsPrimitive
jsonvalues.JsBool
- All Implemented Interfaces:
JsValue
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this JSON boolean.inthashCode()Returns the hashcode of this JSON boolean.booleanisBool()Returns true if this JsValue is a JsBoolbooleanisFalse()Returns true if this JsValue is a JsBool, and it's falsebooleanisTrue()Returns true if this JsValue is a JsBool, and it's truestatic JsBoolof(boolean b) Static factory method to create a JsBool from a boolean primitive type.toString()Methods inherited from class jsonvalues.JsPrimitive
isJson, isPrimitiveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:JsValueReturns true if this JsValue is a JsBool- Returns:
- true if this JsValue is a JsBool
-
isTrue
public boolean isTrue()Description copied from interface:JsValueReturns 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:JsValueReturns 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
-