T
- Type of data on the stream.public final class SettableForwarder<T> extends java.lang.Object implements Consumer<T>
SettableForwarder
.Constructor and Description |
---|
SettableForwarder()
Create with the destination set to
Functions.discard() . |
SettableForwarder(Consumer<T> destination)
Create with the specified destination.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(T item)
Apply the function to
value . |
Consumer<T> |
getDestination()
Get the destination.
|
void |
setDestination(Consumer<T> destination)
Change the destination.
|
public SettableForwarder()
Functions.discard()
.Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641