Class FilterOperation<S>

    • Constructor Detail

      • FilterOperation

        public FilterOperation​(Predicate<? super S> predicate)
    • Method Detail

      • perform

        public Stream<S> perform​(Stream<S> stream)
        Description copied from interface: IntermediateOperation
        Performs the actualy intermediate operation returning the resulting stream
        Specified by:
        perform in interface IntermediateOperation<S,​Stream<S>,​S,​Stream<S>>
        Parameters:
        stream - the stream to have the operation performed on
        Returns:
        the resulting stream after the operation was applied
      • getPredicate

        public Predicate<? super S> getPredicate()