T - The target type for the conversion.@ConsumerType public class TypeReference<T> extends Object
List<String> result = converter.convert(Arrays.asList(1, 2, 3))
.to(new TypeReference<List<String>>() {});
| Modifier | Constructor and Description |
|---|---|
protected |
TypeReference()
A
TypeReference cannot be directly instantiated. |
protected TypeReference()
TypeReference cannot be directly instantiated. To use it, it
has to be extended, typically as an anonymous inner class.public Type getType()
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.