We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ObjectMapper.constructType(TypeReference)
1 parent 3f9ee4b commit 33f28a5Copy full SHA for 33f28a5
src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
@@ -2161,6 +2161,17 @@ public JavaType constructType(Type t) {
2161
return _typeFactory.constructType(t);
2162
}
2163
2164
+ /**
2165
+ * Convenience method for constructing {@link JavaType} out of given
2166
+ * type reference.
2167
+ *
2168
+ * @since 2.12
2169
+ */
2170
+ public JavaType constructType(TypeReference<?> typeRef) {
2171
+ _assertNotNull("typeRef", typeRef);
2172
+ return _typeFactory.constructType(typeRef);
2173
+ }
2174
+
2175
/*
2176
/**********************************************************
2177
/* Configuration, deserialization
0 commit comments