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.boolean
isArray()
boolean
isBigDec()
boolean
isBigInt()
boolean
isBool()
boolean
isDouble()
boolean
isFalse()
boolean
isInt()
boolean
isLong()
boolean
isNothing()
boolean
isNull()
boolean
isNumber()
boolean
isObj()
boolean
isStr()
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.JsElem
asJsArray, asJsBigDec, asJsBigInt, asJsBool, asJsDouble, asJsInt, asJsLong, asJsObj, asJson, asJsStr, isArray, isBigDec, isBigInt, isDecimal, isDouble, isInstant, isInstant, isInt, isIntegral, isJson, isJson, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLong, isNotJson, isNotNothing, isNotNull, isNotNumber, isObj, isSameType, isStr
-
-
-
-
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.
-
isObj
public boolean isObj()
-
isArray
public boolean isArray()
-
isNothing
public boolean isNothing()
-
isNull
public boolean isNull()
-
isNumber
public boolean isNumber()
-
isBool
public boolean isBool()
-
isTrue
public boolean isTrue()
-
isFalse
public boolean isFalse()
-
isInt
public boolean isInt()
-
isDouble
public boolean isDouble()
-
isBigDec
public boolean isBigDec()
-
isLong
public boolean isLong()
-
isStr
public boolean isStr()
-
-