Uses of Class
org.codehaus.jackson.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
(JsonParser)
instances.Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParserContains classes needed for type introspection, mostly used by data binding
functionality.
-
Uses of TypeReference in org.codehaus.jackson
Methods in org.codehaus.jackson with parameters of type TypeReferenceModifier and TypeMethodDescriptionabstract <T> TObjectCodec.readValue(JsonParser jp, TypeReference<?> 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 jp, TypeReference<?> valueTypeRef) Method for reading sequence of Objects from parser stream, all with same specified value type.<T> Iterator<T> JsonParser.readValuesAs(TypeReference<?> valueTypeRef) Method for reading sequence of Objects from parser stream, all with same specified value type. -
Uses of TypeReference in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map with parameters of type TypeReferenceModifier and TypeMethodDescriptionfinal JavaTypeMapperConfig.constructType(TypeReference<?> valueTypeRef) Helper method that will constructJavaTypefor given type reference This is a simple short-cut for:<T> TObjectMapper.convertValue(Object fromValue, TypeReference toValueTypeRef) ObjectMapper.reader(TypeReference<?> type) Factory method for constructingObjectReaderthat will read or update instances of specified type<T> TObjectMapper.readValue(byte[] src, int offset, int len, TypeReference valueTypeRef) <T> TObjectMapper.readValue(byte[] src, TypeReference valueTypeRef) <T> TObjectMapper.readValue(File src, TypeReference valueTypeRef) <T> TObjectMapper.readValue(InputStream src, TypeReference valueTypeRef) <T> TObjectMapper.readValue(Reader src, TypeReference valueTypeRef) <T> TObjectMapper.readValue(String content, TypeReference valueTypeRef) <T> TObjectMapper.readValue(URL src, TypeReference valueTypeRef) <T> TObjectMapper.readValue(JsonNode root, TypeReference valueTypeRef) Convenience method for converting results from given JSON tree into given value type.<T> TObjectMapper.readValue(JsonParser jp, TypeReference<?> valueTypeRef) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> TObjectMapper.readValue(JsonParser jp, TypeReference<?> valueTypeRef, DeserializationConfig cfg) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> TObjectReader.readValue(JsonParser jp, TypeReference<?> valueTypeRef) Convenience method that binds content read using given parser, using configuration of this reader, except that expected value type is specified with the call (instead of currently configured root type).<T> MappingIterator<T> ObjectMapper.readValues(JsonParser jp, TypeReference<?> valueTypeRef) Method for reading sequence of Objects from parser stream.<T> Iterator<T> ObjectReader.readValues(JsonParser jp, TypeReference<?> valueTypeRef) Convenience method that is equivalent to:ObjectMapper.typedWriter(TypeReference<?> rootType) Deprecated.ObjectReader.withType(TypeReference<?> valueTypeRef) Method for constructing a new reader instance that is configured to data bind into specified type.ObjectWriter.withType(TypeReference<?> rootType) ObjectMapper.writerWithType(TypeReference<?> rootType) Factory method for constructingObjectWriterthat will serialize objects using specified root type, instead of actual runtime type of value. -
Uses of TypeReference in org.codehaus.jackson.map.type
Methods in org.codehaus.jackson.map.type with parameters of type TypeReferenceModifier and TypeMethodDescriptionTypeFactory.constructType(TypeReference<?> typeRef) static JavaTypeTypeFactory.fromTypeReference(TypeReference<?> ref) Deprecated.UseTypeFactory.type(Type)insteadstatic JavaTypeTypeFactory.type(TypeReference<?> ref) Deprecated. -
Uses of TypeReference in org.codehaus.jackson.type
Methods in org.codehaus.jackson.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.
ObjectMapper.writerWithType(TypeReference)instead.