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 theyear
andmonth
properties.- 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 YearMonth
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, YearMonth value)
-
-
-
Method Detail
-
read
public YearMonth read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<YearMonth>
- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, YearMonth value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<YearMonth>
- Throws:
IOException
-
-