public final class JsBool extends JsPrimitive
Modifier and Type | Field and Description |
---|---|
static JsBool |
FALSE
The singleton false value.
|
static fun.optic.Prism<JsValue,Boolean> |
prism
prism between the sum type JsValue and JsBool
|
static JsBool |
TRUE
The singleton true value.
|
static int |
TYPE_ID |
boolean |
value
the boolean value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that)
Indicates whether some other object is "equal to" this json boolean.
|
int |
hashCode()
Returns the hashcode of this json boolean.
|
int |
id() |
boolean |
isBool()
Returns true if this JsValue is a JsBool
|
boolean |
isFalse()
Returns true if this JsValue is a JsBool, and it's false
|
boolean |
isTrue()
Returns true if this JsValue is a JsBool, and it's true
|
static JsBool |
of(boolean b)
Static factory method to create a JsBool from a boolean primitive type.
|
JsPrimitive |
toJsPrimitive() |
String |
toString() |
isJson, isPrimitive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public static final int TYPE_ID
public static final JsBool FALSE
public static final JsBool TRUE
public static final fun.optic.Prism<JsValue,Boolean> prism
public final boolean value
public static JsBool of(boolean b)
public int id()
public JsPrimitive toJsPrimitive()
public boolean isBool()
JsValue
public boolean isTrue()
JsValue
public boolean isFalse()
JsValue
public int hashCode()
public boolean equals(Object that)
Copyright © 2022. All rights reserved.