Class InstantAdapter


  • public final class InstantAdapter
    extends com.google.gson.TypeAdapter<Instant>
    • Constructor Detail

      • InstantAdapter

        public InstantAdapter()
    • Method Detail

      • write

        public void write​(com.google.gson.stream.JsonWriter jsonWriter,
                          Instant instant)
                   throws IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<Instant>
        Throws:
        IOException
      • read

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