Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public interface BaseStream<T, S extends BaseStream<T, S>>
ExtendsAutoCloseable
Known subtypesDoubleStream, IntStream, LongStream, Stream
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.
Methods
Method details
iterator
public abstract Iterator<T> iterator()isParallel
public abstract boolean isParallel()sequential
public abstract S sequential()parallel
public abstract S parallel()unordered
public abstract S unordered()onClose
public abstract S onClose(Runnable closeHandler)close
public abstract void close()