Package com.dslplatform.json.runtime
Class CollectionDecoder<E,T extends java.util.Collection<E>>
- java.lang.Object
-
- com.dslplatform.json.runtime.CollectionDecoder<E,T>
-
- All Implemented Interfaces:
JsonReader.ReadObject<T>
public final class CollectionDecoder<E,T extends java.util.Collection<E>> extends java.lang.Object implements JsonReader.ReadObject<T>
-
-
Field Summary
Fields Modifier and Type Field Description private JsonReader.ReadObject<E>decoderprivate java.lang.reflect.Typemanifestprivate java.util.concurrent.Callable<T>newInstance
-
Constructor Summary
Constructors Constructor Description CollectionDecoder(java.lang.reflect.Type manifest, java.util.concurrent.Callable<T> newInstance, JsonReader.ReadObject<E> decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tread(JsonReader reader)
-
-
-
Field Detail
-
manifest
private final java.lang.reflect.Type manifest
-
newInstance
private final java.util.concurrent.Callable<T extends java.util.Collection<E>> newInstance
-
decoder
private final JsonReader.ReadObject<E> decoder
-
-
Constructor Detail
-
CollectionDecoder
public CollectionDecoder(java.lang.reflect.Type manifest, java.util.concurrent.Callable<T> newInstance, JsonReader.ReadObject<E> decoder)
-
-
Method Detail
-
read
@Nullable public T read(JsonReader reader) throws java.io.IOException
- Specified by:
readin interfaceJsonReader.ReadObject<E>- Throws:
java.io.IOException
-
-