Class JsonString
java.lang.Object
name.martingeisse.grumpyjson.json_model.JsonElement
name.martingeisse.grumpyjson.json_model.JsonString
This class represents JSON strings.
-
Method Summary
Modifier and TypeMethodDescriptionIf this JSON element is not a JSON string, this method throws aJsonDeserializationException, otherwise it returns the string value.booleangetValue()Getter method.inthashCode()static JsonStringCreates an instance of this class for the specified plain string value.toString()Methods inherited from class name.martingeisse.grumpyjson.json_model.JsonElement
deserializerExpectsArray, deserializerExpectsBoolean, deserializerExpectsNull, deserializerExpectsNumber, deserializerExpectsObject
-
Method Details
-
of
Creates an instance of this class for the specified plain string value.- Parameters:
value- the string value- Returns:
- the JSON string
-
getValue
Getter method.- Returns:
- the value of this JSON string
-
deserializerExpectsString
Description copied from class:JsonElementIf this JSON element is not a JSON string, this method throws aJsonDeserializationException, otherwise it returns the string value.- Overrides:
deserializerExpectsStringin classJsonElement- Returns:
- the string value
-
equals
-
hashCode
public int hashCode() -
toString
-