Class TupleTypeAdapters.TwoTypeAdapter<F,​S>

  • Enclosing class:
    TupleTypeAdapters

    public static class TupleTypeAdapters.TwoTypeAdapter<F,​S>
    extends com.google.gson.TypeAdapter<Tuple.Two<F,​S>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.gson.TypeAdapter<F> first  
      protected com.google.gson.TypeAdapter<S> second  
    • Constructor Summary

      Constructors 
      Constructor Description
      TwoTypeAdapter​(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<Tuple.Two<F,​S>> typeToken)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Tuple.Two<F,​S> read​(com.google.gson.stream.JsonReader in)  
      void write​(com.google.gson.stream.JsonWriter out, Tuple.Two<F,​S> 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
    • Field Detail

      • first

        protected final com.google.gson.TypeAdapter<F> first
      • second

        protected final com.google.gson.TypeAdapter<S> second
    • Constructor Detail

      • TwoTypeAdapter

        public TwoTypeAdapter​(com.google.gson.Gson gson,
                              com.google.gson.reflect.TypeToken<Tuple.Two<F,​S>> typeToken)
    • Method Detail

      • write

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

        public Tuple.Two<F,​S> read​(com.google.gson.stream.JsonReader in)
                                  throws java.io.IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<Tuple.Two<F,​S>>
        Throws:
        java.io.IOException