public interface CopyDestination extends PredicateSelector<ElementCopy>
Modifier and Type | Method and Description |
---|---|
CopyDestination |
applying(java.util.function.Function<ElementCopy,?> 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 |
notNull()
Copies only the elements that are not
null . |
void |
to(java.lang.Object dest)
Copy the elements to the given object.
|
CopyDestination applying(java.util.function.Function<ElementCopy,?> function)
function
- the function to use.CopyDestination filter(java.util.function.Predicate<? super ElementCopy> predicate)
filter
in interface PredicateSelector<ElementCopy>
predicate
- the predicate to match.CopyDestination notNull()
null
.void to(java.lang.Object dest)
dest
- the object to copy the elements.