S
- source typeD
- destination typepublic interface ReferenceMapExpression<S,D>
Modifier and Type | Method and Description |
---|---|
<V> void |
map(SourceGetter<S> sourceGetter,
DestinationSetter<D,V> destinationSetter)
Map source getter value to destination setter
|
<V> void |
skip(DestinationSetter<D,V> destinationSetter)
Skip destination property based on
destinationSetter |
<V> void |
skip(SourceGetter<S> sourceGetter,
DestinationSetter<D,V> destinationSetter)
Skip the mapping from the source property of
sourceGetter to the destination property
of destinationSetter |
<V> void map(SourceGetter<S> sourceGetter, DestinationSetter<D,V> destinationSetter)
<String>map(Src::getValue, Dest::setValue)
<String>map(src -> srg.getCustomer().getAddress(), dest -> dest.getCustomer().setAddress())
V
- the value type to set into destinationsourceGetter
- a method reference to source getterdestinationSetter
- a method reference to destination setter<V> void skip(DestinationSetter<D,V> destinationSetter)
destinationSetter
<String>skip(Dest::setValue)
<String>map(dest -> dest.getCustomer().setAddress())
V
- the value type of the setterdestinationSetter
- a method reference to destination setter<V> void skip(SourceGetter<S> sourceGetter, DestinationSetter<D,V> destinationSetter)
sourceGetter
to the destination property
of destinationSetter
<String>skip(Source::getValue, Dest::setValue)
V
- the value type of the setterdestinationSetter
- a method reference to destination setterCopyright © 2011–2024. All rights reserved.