Class ImmutableListAdapter<V>

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

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

      • ImmutableListAdapter

        public ImmutableListAdapter()
    • Method Detail

      • listOf

        public static Type listOf​(Type subType)
      • deserialize

        public com.google.common.collect.ImmutableList<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