Class SortedComparatorOperation<S>

    • Constructor Detail

      • SortedComparatorOperation

        public SortedComparatorOperation​(Comparator<? super S> comparator)
    • 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
      • getComparator

        public Comparator<? super S> getComparator()