Class GsonJavaTimeAdapter.YearAdapter

java.lang.Object
com.google.gson.TypeAdapter<Year>
de.xima.fc.helper.GsonJavaTimeAdapter.YearAdapter
Enclosing class:
GsonJavaTimeAdapter

public static class GsonJavaTimeAdapter.YearAdapter extends com.google.gson.TypeAdapter<Year>
Type adapter for Year. Serialized representation is a JSON object with the year property.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, Year value)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • YearAdapter

      public YearAdapter()
  • Method Details

    • read

      public Year read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Year>
      Throws:
      IOException
    • write

      public void write(com.google.gson.stream.JsonWriter out, Year value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Year>
      Throws:
      IOException