public class OutputTypeHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<OutputTypeConverter> |
JAVA_OUTPUT_CONVERTERS |
| Constructor and Description |
|---|
OutputTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConverters(Collection<OutputTypeConverter> converters) |
void |
addConverters(OutputTypeConverter... converters) |
Object |
convertResult(Object result,
Class<?> returnType,
Type genericType) |
<T> T |
convertSpecificType(Object[] result,
Class<T> returnType) |
Optional<OutputTypeConverter> |
getConverter(Class<?> cls) |
public static final List<OutputTypeConverter> JAVA_OUTPUT_CONVERTERS
public void addConverters(OutputTypeConverter... converters)
public void addConverters(Collection<OutputTypeConverter> converters)
public Optional<OutputTypeConverter> getConverter(Class<?> cls)
Copyright © 2017. All rights reserved.