Package fr.ird.observe.gson
Class ImmutableSetAdapter
- java.lang.Object
-
- fr.ird.observe.gson.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 Summary
Constructors Constructor Description ImmutableSetAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSetdeserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context)static <E> com.google.common.reflect.TypeToken<Set<E>>setOf(com.google.common.reflect.TypeToken<E> subType)
-
-
-
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:
deserializein interfacecom.google.gson.JsonDeserializer<com.google.common.collect.ImmutableSet<?>>- Throws:
com.google.gson.JsonParseException
-
-