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 © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0