Package org.jobrunr.utils.mapper.gson
Class DurationAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.time.Duration>
-
- org.jobrunr.utils.mapper.gson.DurationAdapter
-
public class DurationAdapter extends com.google.gson.TypeAdapter<java.time.Duration>
-
-
Constructor Summary
Constructors Constructor Description DurationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Duration
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, java.time.Duration duration)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, java.time.Duration duration) throws java.io.IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<java.time.Duration>
- Throws:
java.io.IOException
-
read
public java.time.Duration read(com.google.gson.stream.JsonReader jsonReader) throws java.io.IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<java.time.Duration>
- Throws:
java.io.IOException
-
-