Package de.xima.fc.helper
Class GsonJavaTimeAdapter.OffsetDateTimeAdapter
java.lang.Object
com.google.gson.TypeAdapter<OffsetDateTime>
de.xima.fc.helper.GsonJavaTimeAdapter.OffsetDateTimeAdapter
- Enclosing class:
- GsonJavaTimeAdapter
public static class GsonJavaTimeAdapter.OffsetDateTimeAdapter
extends com.google.gson.TypeAdapter<OffsetDateTime>
Type adapter for
OffsetDateTime. Serialized representation is a JSON object with the
totalSeconds, year, month, day, hour, minute, and second,
and nano 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, OffsetDateTime value) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
OffsetDateTimeAdapter
public OffsetDateTimeAdapter()
-
-
Method Details
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<OffsetDateTime>- Throws:
IOException
-
write
- Specified by:
writein classcom.google.gson.TypeAdapter<OffsetDateTime>- Throws:
IOException
-