public class BeanCopy
extends java.lang.Object
BeanCopy works with POJO beans, but also with Map.BeanVisitor| Constructor and Description |
|---|
BeanCopy(java.lang.Object source,
java.lang.Object destination)
Creates new BeanCopy process between the source and the destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy()
Performs the copying.
|
BeanCopy |
declared(boolean declared)
Defines if all properties should be copied (when set to
true)
or only public (when set to false, default). |
BeanCopy |
filter(java.util.function.BiPredicate<java.lang.String,java.lang.Object> filter) |
BeanCopy |
filter(java.util.function.Predicate<java.lang.String> filter) |
BeanCopy |
forced(boolean forced) |
static BeanCopy |
from(java.lang.Object source)
Creates
BeanCopy with given POJO bean as a source. |
BeanCopy |
includeFields(boolean includeFields) |
BeanCopy |
to(java.lang.Object destination)
Defines destination, detects a map.
|
public BeanCopy(java.lang.Object source,
java.lang.Object destination)
Map.public static BeanCopy from(java.lang.Object source)
BeanCopy with given POJO bean as a source.public BeanCopy to(java.lang.Object destination)
public BeanCopy declared(boolean declared)
true)
or only public (when set to false, default).public BeanCopy forced(boolean forced)
public BeanCopy filter(java.util.function.Predicate<java.lang.String> filter)
public BeanCopy filter(java.util.function.BiPredicate<java.lang.String,java.lang.Object> filter)
public BeanCopy includeFields(boolean includeFields)
public void copy()