static ByteStream |
ByteStream.iterate(BooleanSupplier hasNext,
ByteSupplier next) |
static CharStream |
CharStream.iterate(BooleanSupplier hasNext,
CharSupplier next) |
static DoubleStream |
DoubleStream.iterate(BooleanSupplier hasNext,
DoubleSupplier next) |
static FloatStream |
FloatStream.iterate(BooleanSupplier hasNext,
FloatSupplier next) |
static IntStream |
IntStream.iterate(BooleanSupplier hasNext,
IntSupplier next) |
static LongStream |
LongStream.iterate(BooleanSupplier hasNext,
LongSupplier next) |
static ShortStream |
ShortStream.iterate(BooleanSupplier hasNext,
ShortSupplier next) |
static <T> Stream<T> |
Stream.iterate(BooleanSupplier hasNext,
Supplier<? extends T> next) |
static ByteStream |
ByteStream.iterate(byte init,
BooleanSupplier hasNext,
ByteUnaryOperator f) |
static CharStream |
CharStream.iterate(char init,
BooleanSupplier hasNext,
CharUnaryOperator f) |
static DoubleStream |
DoubleStream.iterate(double init,
BooleanSupplier hasNext,
DoubleUnaryOperator f) |
static FloatStream |
FloatStream.iterate(float init,
BooleanSupplier hasNext,
FloatUnaryOperator f) |
static IntStream |
IntStream.iterate(int init,
BooleanSupplier hasNext,
IntUnaryOperator f) |
static LongStream |
LongStream.iterate(long init,
BooleanSupplier hasNext,
LongUnaryOperator f) |
static ShortStream |
ShortStream.iterate(short init,
BooleanSupplier hasNext,
ShortUnaryOperator f) |
static <T> Stream<T> |
Stream.iterate(T init,
BooleanSupplier hasNext,
UnaryOperator<T> f)
Returns a sequential ordered Stream produced by iterative
application of a function f to an initial element init ,
producing a Stream consisting of init , f(init) ,
f(f(init)) , etc.
|
static <T> Stream<T> |
Stream.observe(BlockingQueue<T> queue,
BooleanSupplier hasMore,
long maxWaitIntervalInMillis) |
static <T> Stream<T> |
Stream.observe(BlockingQueue<T> queue,
BooleanSupplier hasMore,
long maxWaitIntervalInMillis,
Runnable onComplete)
Sample code:
|