Class ListParser<T>
java.lang.Object
com.amilesend.tmdb.client.parse.parser.ListParser<T>
- Type Parameters:
T- the object type
- All Implemented Interfaces:
GsonParser<List<T>>
Defines a
GsonParser implementation for a list of objects.-
Constructor Summary
ConstructorsConstructorDescriptionListParser(@NonNull Class<T> clazz) Creates a newListParserfor the given class type. -
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.
-
Constructor Details
-
ListParser
-
-
Method Details
-
parse
Description copied from interface:GsonParserDeserializes a JSON-formatted input stream to the defined POJO type.- Specified by:
parsein interfaceGsonParser<T>- Parameters:
gson- the Gson instance used to deserialize the stringjsonStream- stream with expected JSON-formatted contents- Returns:
- the parsed POJO instance
-