Package de.xima.fc.helper
Class GsonJavaTimeAdapter.ZonedDateTimeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<ZonedDateTime>
-
- de.xima.fc.helper.GsonJavaTimeAdapter.ZonedDateTimeAdapter
-
- Enclosing class:
- GsonJavaTimeAdapter
public static class GsonJavaTimeAdapter.ZonedDateTimeAdapter extends com.google.gson.TypeAdapter<ZonedDateTime>
Type adapter forZonedDateTime
. Serialized representation is a JSON object with theyear
,month
,day
,hour
,minute
, andsecond
,nano
, andid
ortotalSeconds
properties.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZonedDateTime
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, ZonedDateTime value)
-
-
-
Method Detail
-
read
public ZonedDateTime read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<ZonedDateTime>
- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, ZonedDateTime value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<ZonedDateTime>
- Throws:
IOException
-
-