Class ImmutableListAdapter<V>
- java.lang.Object
-
- io.ultreia.java4all.util.json.adapters.guava.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 Summary
Constructors Constructor Description ImmutableListAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<V>deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context)static TypelistOf(Type subType)Class<?>type()
-
-
-
Method Detail
-
type
public Class<?> type()
- Specified by:
typein interfaceJsonAdapter
-
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:
deserializein interfacecom.google.gson.JsonDeserializer<V>- Throws:
com.google.gson.JsonParseException
-
-