public interface Mapper
MapperImpl, for more details.| Modifier and Type | Method and Description |
|---|---|
default <T> T |
convertToBean(Object value,
Class<T> clazz,
ConvertErrorRecorder errorRecorder)
Converts the given value to an object of the given class, if possible.
|
Object |
convertToBean(Object value,
TypeInformation typeInformation,
ConvertErrorRecorder errorRecorder)
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, ConvertErrorRecorder errorRecorder)
value - the value to convert (typically a Map)typeInformation - the required typeerrorRecorder - error recorder to register errors even if a valid value is returned@Nullable default <T> T convertToBean(@Nullable Object value, Class<T> clazz, ConvertErrorRecorder errorRecorder)
convertToBean(Object, TypeInformation, ConvertErrorRecorder).T - the class typevalue - the value to convert (typically a Map)clazz - the required classerrorRecorder - error recorder to register errors even if a valid value is returned@Nullable Object toExportValue(@Nullable Object object)
TypeBasedProperty.toExportValue(T) method.object - the object to convert to its export valueCopyright © 2016–2021 The AuthMe Team. All rights reserved.