Class RecordToAnyConverter
java.lang.Object
io.beanmapper.core.converter.impl.RecordToAnyConverter
- All Implemented Interfaces:
BeanConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<S,
T> T convert
(BeanMapper beanMapper, S source, Class<T> targetClass, BeanPropertyMatch beanPropertyMatch) Converts the source instance into the desired target type.boolean
Determines whether the conversion of our source type to a target type is supported by this converter.
-
Constructor Details
-
RecordToAnyConverter
public RecordToAnyConverter()
-
-
Method Details
-
convert
public <S,T> T convert(BeanMapper beanMapper, S source, Class<T> targetClass, BeanPropertyMatch beanPropertyMatch) Description copied from interface:BeanConverter
Converts the source instance into the desired target type.- Specified by:
convert
in interfaceBeanConverter
- Parameters:
beanMapper
- the instance of BeanMapper to use for further mappingssource
- the source instancetargetClass
- the desired target typebeanPropertyMatch
- information on the field pair (source / target)- Returns:
- the converted source instance
-
match
Description copied from interface:BeanConverter
Determines whether the conversion of our source type to a target type is supported by this converter.- Specified by:
match
in interfaceBeanConverter
- Parameters:
sourceClass
- the source classtargetClass
- the target class- Returns:
true
if the conversion is supported, elsefalse
-