Class FilterPipe<T>

    • Constructor Detail

      • FilterPipe

        public FilterPipe​(Pipe<T> input,
                          Predicate<? super T> predicate)
        Constructor
        Parameters:
        input - The input pipe
    • Method Detail

      • shouldSelect

        protected boolean shouldSelect​(T item)
        Specified by:
        shouldSelect in class FilterBasePipe<T>
        Parameters:
        item - The next item from the input stream
        Returns:
        true if and only if the item should be selected