org.apache.tomcat.util.json
static final class: JSONObject.Null [javadoc |
source]
java.lang.Object
org.apache.tomcat.util.json.JSONObject$Null
JSONObject.NULL is equivalent to the value that JavaScript calls null,
whilst Java's null is equivalent to the value that JavaScript calls
undefined.
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.tomcat.util.json.JSONObject$Null Detail: |
protected final Object clone() {
return this;
}
There is only intended to be a single instance of the NULL object,
so the clone method returns itself. |
public boolean equals(Object object) {
return object == null || object == this;
}
A Null object is equal to the null value and to itself. |
public String toString() {
return "null";
}
Get the "null" string value. |