| java.lang.Object | ||
| ↳ | com.google.gson.JsonElement | |
| ↳ | com.google.gson.JsonNull | |
A class representing a Json null value.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final JsonNull | INSTANCE | singleton for JsonNull | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
JsonNull()
Creates a new JsonNull object.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gson.JsonElement
| |||||||||||
From class
java.lang.Object
| |||||||||||
Creates a new JsonNull object.
Deprecated since Gson version 1.8. Use INSTANCE instead
All instances of JsonNull have the same hash code since they are indistinguishable