Interface BaseStream<T, S extends BaseStream<T,S>>

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
DoubleStream, IntStream, LongStream, Stream<T>

public interface BaseStream<T, S extends BaseStream<T,S>> extends AutoCloseable

What the object stream and the three primitive ones have in common.

Streams here are sequential. parallel() exists because code calls it, and answers the stream it was called on.

  • Method Details

    • iterator

      Iterator<T> iterator()
    • isParallel

      boolean isParallel()
    • sequential

      S sequential()
    • parallel

      S parallel()
    • unordered

      S unordered()
    • onClose

      S onClose(Runnable closeHandler)
    • close

      void close()
      Specified by:
      close in interface AutoCloseable