java.lang.Object
jsonvalues.JsNothing
- All Implemented Interfaces:
JsValue
It's a special JSON element that represents 'nothing'. Inserting nothing in a JSON leaves the json
unchanged. The functions that return a JsValue, like
Json.get(JsPath)
,
return nothing when no element is found, what makes them total on the input path.-
Field Summary
Fields -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jsonvalues.JsValue
ifNothing, ifNull, isArray, isArray, isBigDec, isBigDec, isBigInt, isBigInt, isBinary, isBool, isDecimal, isDouble, isDouble, isFalse, isInstant, isInstant, isInt, isInt, isIntegral, isJson, isJson, isLong, isLong, isNotNothing, isNotNull, isNotNumber, isNull, isNumber, isObj, isObj, isPrimitive, isSameType, isStr, isStr, isTrue, toJsArray, toJsBigDec, toJsBigInt, toJsBinary, toJsBool, toJsDouble, toJsInstant, toJsInt, toJsLong, toJsNumber, toJsObj, toJson, toJsStr
-
Field Details
-
NOTHING
The singleton nothing value.
-
-
Method Details
-
toJsPrimitive
- Specified by:
toJsPrimitive
in interfaceJsValue
-
isNothing
public boolean isNothing()Description copied from interface:JsValue
Returns true if this element is JsNothing -
hashCode
public int hashCode()Returns the hashcode of this JsNothing. -
equals
Returns true if that is the singletonNOTHING
. -
toString
-