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 forOffsetDateTime. Serialized representation is a JSON object with thetotalSeconds,year,month,day,hour,minute, andsecond, andnanoproperties.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description OffsetDateTimeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, OffsetDateTime value)
-
-
-
Method Detail
-
read
public OffsetDateTime read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<OffsetDateTime>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, OffsetDateTime value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<OffsetDateTime>- Throws:
IOException
-
-