- 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
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
Get the "null" string value.
-
-
Method Details
-
equals
A Null object is equal to the null value and to itself.
- Overrides:
equals
in class Object
- Parameters:
object
- an object to test for nullness
- Returns:
- true if the object parameter is the JSONObject.NULL object or null
-
-
toString
Get the "null" string value.
- Overrides:
toString
in class Object
- Returns:
- the string "null".
-
clone
There is only intended to be a single instance of the NULL object,
so the clone method returns itself.
- Overrides:
clone
in class Object
- Returns:
- NULL.