Class Utils.DurationTypeAdapter

  • Enclosing class:
    Utils

    public static class Utils.DurationTypeAdapter
    extends com.google.gson.TypeAdapter<java.time.Duration>
    • Constructor Detail

      • DurationTypeAdapter

        public DurationTypeAdapter()
    • Method Detail

      • write

        public void write​(com.google.gson.stream.JsonWriter out,
                          java.time.Duration value)
                   throws IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<java.time.Duration>
        Throws:
        IOException
      • read

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