public interface Mapper
MapperImpl, for more details.| Modifier and Type | Method and Description |
|---|---|
default <T> T |
convertToBean(Object value,
Class<T> clazz)
Converts the given value to an object of the given class, if possible.
|
Object |
convertToBean(Object value,
TypeInformation typeInformation)
Creates an object of the given type from the given value.
|
Object |
toExportValue(Object object)
Converts a complex type such as a JavaBean object to simple types suitable for exporting.
|
@Nullable Object convertToBean(@Nullable Object value, TypeInformation typeInformation)
value - the value to convert (typically a Map)typeInformation - the required type@Nullable default <T> T convertToBean(@Nullable Object value, Class<T> clazz)
convertToBean(Object, TypeInformation).T - the class typevalue - the value to convert (typically a Map)clazz - the required class@Nullable Object toExportValue(@Nullable Object object)
BeanProperty.toExportValue(T) method.object - the object to convert to its export valueCopyright © 2016–2018 The AuthMe Team. All rights reserved.