Package | Description |
---|---|
com.github.erchu.beancp |
Object to object mapping library.
|
Modifier and Type | Method and Description |
---|---|
DeclarativeMap<S,D> |
DeclarativeMap.afterMap(Action action)
Action to be performed before mappings.
|
DeclarativeMap<S,D> |
DeclarativeMap.afterMap(java.util.function.Consumer<Mapper> action)
Action to be performed before mappings.
|
DeclarativeMap<S,D> |
DeclarativeMap.beforeMap(Action action)
Action to be performed after mappings.
|
DeclarativeMap<S,D> |
DeclarativeMap.beforeMap(java.util.function.Consumer<Mapper> action)
Action to be performed after mappings.
|
<T> DeclarativeMap<S,D> |
DeclarativeMap.bind(java.util.function.Supplier<T> fromFunction,
java.util.function.Consumer<T> toMember,
BindingOption<S,D,T>... options)
Adds calculated member binding to destination member or members.
|
<T> DeclarativeMap<S,D> |
DeclarativeMap.bindConstant(T constantValue,
java.util.function.Consumer<T> toMember,
BindingOption<S,D,T>... options)
Adds constant binding to destination member or members.
|
DeclarativeMap<S,D> |
DeclarativeMap.constructDestinationObjectUsing(java.util.function.Supplier<D> destinationObjectBuilder)
Operation used to build destination object.
|
<SI,DI> DeclarativeMap<S,D> |
DeclarativeMap.mapInner(java.util.function.Supplier<SI> fromFunction,
java.util.function.Consumer<DI> toMember,
Class<DI> toMemberClass,
BindingOption<S,D,DI>... options)
Adds inner object mapping.
|
<SI,DI> DeclarativeMap<S,D> |
DeclarativeMap.mapInner(java.util.function.Supplier<SI> fromFunction,
java.util.function.Consumer<DI> toMember,
java.util.function.Supplier<DI> toMemberGetter,
Class<DI> toMemberClass,
BindingOption<S,D,DI>... options)
Adds inner object mapping.
|
DeclarativeMap<S,D> |
DeclarativeMap.useConvention(MapConvention MapConvention)
Adds mappings using convention.
|
Modifier and Type | Method and Description |
---|---|
void |
DeclarativeMapSetup.apply(DeclarativeMap<S,D> config,
S source,
D destination)
Defines new map configuration.
|
Copyright © 2014. All rights reserved.