Class GsonJavaTimeAdapter.InstantAdapter

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

public static class GsonJavaTimeAdapter.InstantAdapter extends com.google.gson.TypeAdapter<Instant>
Type adapter for LocalDate. Serialized representation is a JSON object with the seconds and nanos properties.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • InstantAdapter

      public InstantAdapter()
  • Method Details

    • read

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

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