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
isNothing()
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, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isBool, isDecimal, isDouble, isDouble, isFalse, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isJson, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLong, isLong, isNotJson, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isSameType, isStr, isStr, isTrue
-
-