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 forZoneIdand its subclasses. Serialized representation is a JSON object with theidproperty forZoneRegion; or thetotalSecondsproperty forZoneOffset.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ZoneIdHierarchyAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoneIdread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, ZoneId value)
-
-
-
Method Detail
-
read
public ZoneId read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<ZoneId>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, ZoneId value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<ZoneId>- Throws:
IOException
-
-