Class LeftOrRightContextAdapter<O>

    • Constructor Detail

      • LeftOrRightContextAdapter

        public LeftOrRightContextAdapter()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(LeftOrRightContext<O> src,
                                                     Type typeOfSrc,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<O>
      • deserialize

        public LeftOrRightContext<O> deserialize​(com.google.gson.JsonElement json,
                                                 Type typeOfT,
                                                 com.google.gson.JsonDeserializationContext context)
                                          throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<O>
        Throws:
        com.google.gson.JsonParseException