public final class

JsonNull

extends JsonElement
java.lang.Object
   ↳ com.google.gson.JsonElement
     ↳ com.google.gson.JsonNull

Class Overview

A class representing a Json null value.

Summary

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

Fields

public static final JsonNull INSTANCE

singleton for JsonNull

Public Constructors

public JsonNull ()

Creates a new JsonNull object. Deprecated since Gson version 1.8. Use INSTANCE instead

Public Methods

public boolean equals (Object other)

All instances of JsonNull are the same

public int hashCode ()

All instances of JsonNull have the same hash code since they are indistinguishable