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 forZoneId
and its subclasses. Serialized representation is a JSON object with theid
property forZoneRegion
; or thetotalSeconds
property 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 ZoneId
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, ZoneId value)
-
-
-
Method Detail
-
read
public ZoneId read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<ZoneId>
- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, ZoneId value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<ZoneId>
- Throws:
IOException
-
-