Package fr.ird.observe.gson
Class ImmutableSetStringMapAdapter
- java.lang.Object
-
- fr.ird.observe.gson.ImmutableSetStringMapAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ImmutableSetStringMap>,com.google.gson.JsonSerializer<ImmutableSetStringMap>
public class ImmutableSetStringMapAdapter extends Object implements com.google.gson.JsonSerializer<ImmutableSetStringMap>, com.google.gson.JsonDeserializer<ImmutableSetStringMap>
Created by tchemit on 17/09/2018.- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Constructor Summary
Constructors Constructor Description ImmutableSetStringMapAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSetStringMapdeserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(ImmutableSetStringMap src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(ImmutableSetStringMap src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<ImmutableSetStringMap>
-
deserialize
public ImmutableSetStringMap 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<ImmutableSetStringMap>- Throws:
com.google.gson.JsonParseException
-
-