Package org.jobrunr.utils.mapper.gson
Class DurationAdapter
java.lang.Object
com.google.gson.TypeAdapter<Duration>
org.jobrunr.utils.mapper.gson.DurationAdapter
-
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
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, Duration duration) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<Duration>
- Throws:
IOException
-