Package org.json
Class JSONObject.Null
java.lang.Object
org.json.JSONObject.Null
- Enclosing class:
JSONObject
JSONObject.NULL is equivalent to the value that JavaScript calls null,
whilst Java's null is equivalent to the value that JavaScript calls
undefined.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
clone()
There is only intended to be a single instance of the NULL object, so the clone method returns itself.boolean
A Null object is equal to the null value and to itself.int
hashCode()
A Null object is equal to the null value and to itself.toString()
Get the "null" string value.
-
Constructor Details
-
Null
private Null()
-
-
Method Details
-
clone
There is only intended to be a single instance of the NULL object, so the clone method returns itself. -
equals
A Null object is equal to the null value and to itself. -
hashCode
public int hashCode()A Null object is equal to the null value and to itself. -
toString
Get the "null" string value.
-