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