Class ImmutableSetAdapter<V>

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<V>>, JsonAdapter

    @AutoService(JsonAdapter.class)
    public class ImmutableSetAdapter<V>
    extends Object
    implements com.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<V>>, JsonAdapter
    Since:
    1.1.0
    Author:
    Tony Chemit - dev@tchemit.fr
    • Constructor Detail

      • ImmutableSetAdapter

        public ImmutableSetAdapter()
    • Method Detail

      • setOf

        public static Type setOf​(Type subType)
      • deserialize

        public com.google.common.collect.ImmutableSet<V> 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<V>
        Throws:
        com.google.gson.JsonParseException