Class ImmutableSetAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<?>>

    public class ImmutableSetAdapter
    extends Object
    implements com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<?>>
    Author:
    Tony Chemit - dev@tchemit.fr
    • Constructor Detail

      • ImmutableSetAdapter

        public ImmutableSetAdapter()
    • Method Detail

      • setOf

        public static <E> com.google.common.reflect.TypeToken<Set<E>> setOf​(com.google.common.reflect.TypeToken<E> subType)
      • deserialize

        public com.google.common.collect.ImmutableSet deserialize​(com.google.gson.JsonElement json,
                                                                  Type type,
                                                                  com.google.gson.JsonDeserializationContext context)
                                                           throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<?>>
        Throws:
        com.google.gson.JsonParseException