public final class TruggerElementCopier extends java.lang.Object implements ElementCopier, CopyDestination
Constructor and Description |
---|
TruggerElementCopier() |
TruggerElementCopier(ElementsSelector selector) |
Modifier and Type | Method and Description |
---|---|
CopyDestination |
applying(java.util.function.Function function)
Executes the given function to transform the elements before the copy.
|
CopyDestination |
filter(java.util.function.Predicate<? super ElementCopy> predicate)
Filter the elements to copy by testing with the given predicate.
|
CopyDestination |
from(java.lang.Object src)
Sets the source object and copies the elements.
|
CopyDestination |
notNull()
Copies only the elements that are not
null . |
void |
to(java.lang.Object object)
Copy the elements to the given object.
|
public TruggerElementCopier()
public TruggerElementCopier(ElementsSelector selector)
public CopyDestination notNull()
CopyDestination
null
.notNull
in interface CopyDestination
public CopyDestination from(java.lang.Object src)
ElementCopier
from
in interface ElementCopier
src
- the source object.public CopyDestination filter(java.util.function.Predicate<? super ElementCopy> predicate)
CopyDestination
filter
in interface CopyDestination
filter
in interface PredicateSelector<ElementCopy>
predicate
- the predicate to match.public CopyDestination applying(java.util.function.Function function)
CopyDestination
applying
in interface CopyDestination
function
- the function to use.public void to(java.lang.Object object)
CopyDestination
to
in interface CopyDestination
object
- the object to copy the elements.