Uses of Class
com.fasterxml.jackson.core.type.TypeReference
Packages that use TypeReference
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances.Contains classes needed for type introspection, mostly used by data binding
functionality.
-
Uses of TypeReference in com.fasterxml.jackson.core
Methods in com.fasterxml.jackson.core with parameters of type TypeReferenceModifier and TypeMethodDescriptionabstract <T> TObjectCodec.readValue(JsonParser p, TypeReference<T> valueTypeRef) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> TJsonParser.readValueAs(TypeReference<?> valueTypeRef) Method to deserialize JSON content into a Java type, reference to which is passed as argument.abstract <T> Iterator<T> ObjectCodec.readValues(JsonParser p, TypeReference<T> valueTypeRef) Method for reading sequence of Objects from parser stream, all with same specified value type.<T> Iterator<T> JsonParser.readValuesAs(TypeReference<T> valueTypeRef) Method for reading sequence of Objects from parser stream, all with same specified value type. -
Uses of TypeReference in com.fasterxml.jackson.core.type
Classes in com.fasterxml.jackson.core.type that implement interfaces with type arguments of type TypeReferenceModifier and TypeClassDescriptionclassThis generic abstract class is used for obtaining full generics type information by sub-classing; it must be converted toResolvedTypeimplementation (implemented byJavaTypefrom "databind" bundle) to be used.Methods in com.fasterxml.jackson.core.type with parameters of type TypeReferenceModifier and TypeMethodDescriptionintTypeReference.compareTo(TypeReference<T> o) The only reason we define this method (and require implementation ofComparable) is to prevent constructing a reference without type information.