Package jsonvalues
Class JsNothing
- java.lang.Object
-
- jsonvalues.JsNothing
-
- All Implemented Interfaces:
JsElem
public final class JsNothing extends Object implements JsElem
It's a special json element that represents 'nothing'. Inserting nothing in a json leaves the json unchanged. The functions that return a JsElem, likeJson.get(JsPath)
, return nothing when no element is found, what makes them total on the input path.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable Object that)
Returns true if that is the singletonNOTHING
.int
hashCode()
Returns the hashcode of this JsNothing.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()
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
-
-
-
-
Field Detail
-
NOTHING
public static final JsNothing NOTHING
The singleton nothing value.
-
-
Method Detail
-
hashCode
public int hashCode()
Returns the hashcode of this JsNothing.
-
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()
-
-