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