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 for
ZonedDateTime. Serialized representation is a JSON object with the year,
month, day, hour, minute, and second, nano, and id or
totalSeconds properties.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader in) voidwrite(com.google.gson.stream.JsonWriter out, ZonedDateTime value) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ZonedDateTimeAdapter
public ZonedDateTimeAdapter()
-
-
Method Details
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<ZonedDateTime>- Throws:
IOException
-
write
- Specified by:
writein classcom.google.gson.TypeAdapter<ZonedDateTime>- Throws:
IOException
-