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