Package de.xima.fc.helper
Class GsonJavaTimeAdapter.ZoneIdHierarchyAdapter
java.lang.Object
com.google.gson.TypeAdapter<ZoneId>
de.xima.fc.helper.GsonJavaTimeAdapter.ZoneIdHierarchyAdapter
- Enclosing class:
- GsonJavaTimeAdapter
public static class GsonJavaTimeAdapter.ZoneIdHierarchyAdapter
extends com.google.gson.TypeAdapter<ZoneId>
Type adapter for
ZoneId and its subclasses. Serialized representation is a JSON object with the
id property for ZoneRegion; or the totalSeconds property for ZoneOffset.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ZoneIdHierarchyAdapter
public ZoneIdHierarchyAdapter()
-
-
Method Details
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<ZoneId>- Throws:
IOException
-
write
- Specified by:
writein classcom.google.gson.TypeAdapter<ZoneId>- Throws:
IOException
-