T
- The target type for the conversion.@ConsumerType public class TypeReference<T> extends java.lang.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. |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Type |
getType()
Return the actual type of this Type Reference
|
protected TypeReference()
TypeReference
cannot be directly instantiated. To use it, it
has to be extended, typically as an anonymous inner class.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0