Package jsonvalues
Class JsBool
- java.lang.Object
-
- jsonvalues.JsBool
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable 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()
boolean
isFalse()
boolean
isTrue()
JsBool
negate()
Negates this json boolean (implementation of ! operator).static JsBool
of(boolean b)
Static factory method to create a JsBool from a boolean primitive type.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jsonvalues.JsValue
isArray, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isDecimal, isDouble, isDouble, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isJson, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLong, isLong, isNothing, isNotJson, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isSameType, isStr, isStr, toJsArray, toJsBigDec, toJsBigInt, toJsBool, toJsDouble, toJsInt, toJsLong, toJsObj, toJson, toJsStr
-
-
-
-
Field Detail
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
FALSE
public static final JsBool FALSE
The singleton false value.
-
TRUE
public static final JsBool TRUE
The singleton true value.
-
value
public final boolean value
the boolean value.
-
-
Method Detail
-
equals
public boolean equals(@Nullable Object that)
Indicates whether some other object is "equal to" this json boolean.
-
hashCode
public int hashCode()
Returns the hashcode of this json boolean.
-
negate
public JsBool negate()
Negates this json boolean (implementation of ! operator).- Returns:
- the inverse value of this
-
of
public static JsBool of(boolean b)
Static factory method to create a JsBool from a boolean primitive type.
-
isBool
public boolean isBool()
-
isTrue
public boolean isTrue()
-
-