S
- source object type.D
- destination object type.T
- destination member type.public final class BindingOption<S,D,T> extends Object
Modifier and Type | Method and Description |
---|---|
static <S,D,T> BindingOption<S,D,T> |
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> |
withNullSubstitution(T nullSubstitution)
If from source value getter will return null then value will be substituted with result from
nullSubstitution lambda.
|
public static <S,D,T> BindingOption<S,D,T> mapWhen(java.util.function.Supplier<Boolean> condition)
S
- source object type.D
- destination object type.T
- destination member type.condition
- mapping condition lambda.public static <S,D,T> BindingOption<S,D,T> withNullSubstitution(T nullSubstitution)
S
- source object type.D
- destination object type.T
- destination member type.nullSubstitution
- null substitution value.Copyright © 2014. All rights reserved.