Package | Description |
---|---|
com.github.erchu.beancp |
Object to object mapping library.
|
Modifier and Type | Method and Description |
---|---|
static <S,D,T> BindingOption<S,D,T> |
BindingOption.mapWhen(java.util.function.Supplier<Boolean> condition)
Property mapping will be performed when condition lambda will return true.
|
static <S,D,T> BindingOption<S,D,T> |
BindingOption.withNullSubstitution(T nullSubstitution)
If from source value getter will return null then value will be substituted with result from
nullSubstitution lambda.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
<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.
|
Copyright © 2014. All rights reserved.