- All Implemented Interfaces:
- FilterPipe<S>, Pipe<S,S>, MetaPipe, Iterable<S>, Iterator<S>
public class AndFilterPipe<S>
extends AbstractMetaPipe<S,S>
implements FilterPipe<S>, MetaPipe
The AndFilterPipe takes a collection of pipes. Each provided pipe is wrapped in a HasNextPipe and is fed the same incoming S object.
If all the pipes emit true, then the AndFilterPipe emits the incoming S object. If not, then the incoming S object is not emitted.
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)