Class 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 Detail

      • InstantAdapter

        public InstantAdapter()
    • Method Detail

      • 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