Class JsonNull
java.lang.Object
name.martingeisse.grumpyjson.json_model.JsonElement
name.martingeisse.grumpyjson.json_model.JsonNull
This class represents JSON null.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidIf this JSON element is not JSON null, this method throws aJsonDeserializationException, otherwise it does nothing.booleaninthashCode()static JsonNullof()This method just returns the shared instanceINSTANCEand is provided for uniformity with the other JSON classes.toString()Methods inherited from class name.martingeisse.grumpyjson.json_model.JsonElement
deserializerExpectsArray, deserializerExpectsBoolean, deserializerExpectsNumber, deserializerExpectsObject, deserializerExpectsString
-
Field Details
-
INSTANCE
Shared instance of this class.
-
-
Method Details
-
of
This method just returns the shared instanceINSTANCEand is provided for uniformity with the other JSON classes.- Returns:
- the shared instance
-
deserializerExpectsNull
public void deserializerExpectsNull()Description copied from class:JsonElementIf this JSON element is not JSON null, this method throws aJsonDeserializationException, otherwise it does nothing.- Overrides:
deserializerExpectsNullin classJsonElement
-
equals
-
hashCode
public int hashCode() -
toString
-