Package google.registry.util
Class StringBaseTypeAdapter<T>
java.lang.Object
com.google.gson.TypeAdapter<T>
google.registry.util.StringBaseTypeAdapter<T>
- Direct Known Subclasses:
CidrAddressBlock.CidrAddressBlockAdapter
,CurrencyJsonAdapter
,DateTimeTypeAdapter
,SerializableJsonTypeAdapter
public abstract class StringBaseTypeAdapter<T>
extends com.google.gson.TypeAdapter<T>
Abstract class for
TypeAdapter
s that can convert directly to/from strings.-
Constructor Summary
-
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
StringBaseTypeAdapter
public StringBaseTypeAdapter()
-
-
Method Details
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<T>
- Throws:
IOException
-
write
- Specified by:
write
in classcom.google.gson.TypeAdapter<T>
- Throws:
IOException
-
fromString
- Throws:
IOException
-