Class DurationAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Duration>
-
- cn.boboweike.carrot.utils.mapper.gson.DurationAdapter
-
public class DurationAdapter extends com.google.gson.TypeAdapter<Duration>
-
-
Constructor Summary
Constructors Constructor Description DurationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Durationread(com.google.gson.stream.JsonReader jsonReader)voidwrite(com.google.gson.stream.JsonWriter jsonWriter, Duration duration)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, Duration duration) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Duration>- Throws:
IOException
-
read
public Duration read(com.google.gson.stream.JsonReader jsonReader) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Duration>- Throws:
IOException
-
-