net.sf.json
Class JSONNull

java.lang.Object
  extended by net.sf.json.JSONNull
All Implemented Interfaces:
JSON

public final class JSONNull
extends java.lang.Object
implements JSON

JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.

Version:
2
Author:
JSON.org

Method Summary
 boolean equals(java.lang.Object object)
          A Null object is equal to the null value and to itself.
static JSONNull getInstance()
          Returns the singleton instance of JSONNull
 int hashCode()
           
 boolean isArray()
           
 java.lang.String toString()
          Get the "null" string value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static JSONNull getInstance()
Returns the singleton instance of JSONNull


equals

public boolean equals(java.lang.Object object)
A Null object is equal to the null value and to itself.

Overrides:
equals in class java.lang.Object
Parameters:
object - An object to test for nullness.
Returns:
true if the object parameter is the JSONObject.NULL object or null.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isArray

public boolean isArray()
Specified by:
isArray in interface JSON

toString

public java.lang.String toString()
Get the "null" string value.

Overrides:
toString in class java.lang.Object
Returns:
The string "null".


Copyright © 2006 null. All Rights Reserved.