T - The type whose properties are to be mapped.public interface BiMapping<T> extends Mapping<T>, ReMapping<T>
Map. In Addition, it can copy the properties from one instance of the type to another.| Modifier and Type | Interface and Description |
|---|---|
static class |
BiMapping.Builder<T>
Defines a builder for the declarative creation of a
BiMapping. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> BiMapping.Builder<T> |
add(String name,
Function<T,? extends V> getter,
BiConsumer<T,V> setter)
Creates a new
BiMapping.Builder and adds a link between name and getter method, which represents a
property of the associated type. |
static <T> BiMapping<T> |
combine(Mapping<? super T> mapping,
ReMapping<T> reMapping)
|
TargetOperation<T> |
copy(T origin)
Results in a
TargetOperation for a given origin instance of the associated type,
which can copy its properties into another instance of that type. |
static <T,V> BiMapping.Builder<T> add(String name, Function<T,? extends V> getter, BiConsumer<T,V> setter)
BiMapping.Builder and adds a link between name and getter method, which represents a
property of the associated type.T - The type whose properties are to be mapped.TargetOperation<T> copy(T origin)
TargetOperation for a given origin instance of the associated type,
which can copy its properties into another instance of that type.Copyright © 2021 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.