Package | Description |
---|---|
com.github.erchu.beancp |
Object to object mapping library.
|
Modifier and Type | Method and Description |
---|---|
Mapper |
MapperBuilder.buildMapper()
Creates map implementation from definitions.
|
Modifier and Type | Method and Description |
---|---|
D |
Converter.convert(Mapper caller,
S source)
Performs conversion.
|
void |
Binding.execute(Mapper mapper,
Object source,
Object destination)
Copies value from source to destination.
|
protected void |
BindingWithValueMap.setValueAtDestination(Mapper mapper,
Object destination,
Object value)
Sets value at destination.
|
protected void |
BindingWithValueConversion.setValueAtDestination(Mapper mapper,
Object destination,
Object value)
Sets value at destination.
|
protected void |
Binding.setValueAtDestination(Mapper mapper,
Object destination,
Object value)
Sets value at destination.
|
Modifier and Type | Method and Description |
---|---|
<S,D> MapperBuilder |
MapperBuilder.addConverter(Class<S> sourceClass,
Class<D> destinationClass,
java.util.function.BiFunction<Mapper,S,D> convertionAction)
Adds new mapping implemented by converter.
|
DeclarativeMap<S,D> |
DeclarativeMap.afterMap(java.util.function.Consumer<Mapper> action)
Action to be performed before mappings.
|
DeclarativeMap<S,D> |
DeclarativeMap.beforeMap(java.util.function.Consumer<Mapper> action)
Action to be performed after mappings.
|
Constructor and Description |
---|
Converter(Class<S> sourceClass,
Class<D> destinationClass,
java.util.function.BiFunction<Mapper,S,D> convertAction)
Creates converter instance using
Mapper reference during execution. |
Copyright © 2014. All rights reserved.