Package google.registry.model.adapters
Class SerializableJsonTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<Serializable>
google.registry.util.StringBaseTypeAdapter<Serializable>
google.registry.model.adapters.SerializableJsonTypeAdapter
TypeAdapter for
Serializable
objects.
VKey keys (primary keys in SQL) are usually represented by either a long or a String. There are a couple situations (CursorId, HistoryEntryId) where the Serializable in question is a complex object, but we do not need to worry about (de)serializing those objects to/from JSON.
-
Constructor Summary
-
Method Summary
Methods inherited from class google.registry.util.StringBaseTypeAdapter
read, write
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
SerializableJsonTypeAdapter
public SerializableJsonTypeAdapter()
-
-
Method Details
-
fromString
- Specified by:
fromString
in classStringBaseTypeAdapter<Serializable>
- Throws:
IOException
-