Converting instance can be obtained via the
Converter.
| Modifier and Type | Method and Description |
|---|---|
| public < The type to convert to. T> T | |
| public < The type to convert to. T> T | |
| public < The type to convert to. T> T | Returns: The converted object.A type reference to the object being converted to. ref)Specify the target object type as a |
| to | back to summary |
|---|---|
| public <T> T to(Class<T> cls) Specify the target object type for the conversion as a class object.
| |
| to | back to summary |
|---|---|
| public <T> T to(Type type) Specify the target object type as a Java Reflection Type object.
| |
| to | back to summary |
|---|---|
| public <T> T to(TypeReference<T> ref) Specify the target object type as a
List<String> result = converter.convert(Arrays.asList(1, 2, 3))
.to(new TypeReference<List<String>>() {
});
| |