Package jsonvalues
Class JsNull
- java.lang.Object
-
- jsonvalues.JsNull
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
Returns true if that is the singletonNULL
.int
hashCode()
Returns the hashcode of this json nullint
id()
boolean
isNull()
java.lang.String
toString()
-
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, isNothing, isNotJson, isNotNothing, isNotNull, isNotNumber, isNumber, isObj, isObj, isSameType, isStr, isStr, isTrue, toJsArray, toJsBigDec, toJsBigInt, toJsBinary, toJsBool, toJsDouble, toJsInstant, toJsInt, toJsLong, toJsNumber, toJsObj, toJson, toJsStr
-
-
-
-
Field Detail
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
NULL
public static final JsNull NULL
The singleton null value.
-
-
Method Detail
-
isNull
public boolean isNull()
-
hashCode
public int hashCode()
Returns the hashcode of this json null- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- 1
-
equals
public boolean equals(java.lang.Object that)
Returns true if that is the singletonNULL
.- Overrides:
equals
in classjava.lang.Object
- Parameters:
that
- the reference object with which to compare.- Returns:
- true if that is
NULL
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- "null"
-
-