Package de.xima.fc.helper
Class GsonJavaTimeAdapter.DurationAdapter
java.lang.Object
com.google.gson.TypeAdapter<Duration>
de.xima.fc.helper.GsonJavaTimeAdapter.DurationAdapter
- Enclosing class:
- GsonJavaTimeAdapter
public static class GsonJavaTimeAdapter.DurationAdapter
extends com.google.gson.TypeAdapter<Duration>
Type adapter for
Duration
. Serialized representation is a JSON object with the seconds
and
nanos
properties.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
DurationAdapter
public DurationAdapter()
-
-
Method Details
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-
write
- Specified by:
write
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-