Class MapParser<K,V>
java.lang.Object
com.amilesend.client.parse.parser.MapParser<K,V>
- Type Parameters:
K- the key object typeV- the value object type
- All Implemented Interfaces:
GsonParser<Map<K,V>>
Defines a
GsonParser implementation for a map of key value pairs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(@NonNull com.google.gson.Gson gson, @NonNull InputStream jsonStream) Deserializes a JSON-formatted input stream to the defined POJO type.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GsonParser
parse
-
Constructor Details
-
MapParser
-
-
Method Details
-
parse
Description copied from interface:GsonParserDeserializes a JSON-formatted input stream to the defined POJO type.- Specified by:
parsein interfaceGsonParser<K>- Parameters:
gson- the Gson instance used to deserialize the stringjsonStream- stream with expected JSON-formatted contents- Returns:
- the parsed POJO instance
-