com.google.gson
Class JsonNull

java.lang.Object
  extended by com.google.gson.JsonElement
      extended by com.google.gson.JsonNull

public final class JsonNull
extends JsonElement

A class representing a Json null value.

Since:
1.2
Author:
Inderjeet Singh, Joel Leitch

Constructor Summary
JsonNull()
          Creates a new JsonNull object.
 
Method Summary
 boolean equals(Object other)
          All instances of JsonNull are the same
 int hashCode()
          All instances of JsonNull have the same hash code since they are indistinguishable
 
Methods inherited from class com.google.gson.JsonElement
getAsBigDecimal, getAsBigInteger, getAsBoolean, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInt, getAsJsonArray, getAsJsonNull, getAsJsonObject, getAsJsonPrimitive, getAsLong, getAsNumber, getAsShort, getAsString, isJsonArray, isJsonNull, isJsonObject, isJsonPrimitive, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonNull

public JsonNull()
Creates a new JsonNull object.

Method Detail

hashCode

public int hashCode()
All instances of JsonNull have the same hash code since they are indistinguishable

Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
All instances of JsonNull are the same

Overrides:
equals in class Object


Copyright © 2008-2009. All Rights Reserved.