| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
static IntStream |
IntStream.concat(IntStream a,
IntStream b)
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
|
IntStream |
IntStream.distinct()
Returns a stream consisting of the distinct elements of this stream.
|
IntStream |
IntStream.dropWhile(IntPredicate predicate)
Drops elements while the predicate is true and returns the rest.
|
static IntStream |
IntStream.empty()
Returns an empty stream.
|
IntStream |
IntStream.filter(IntPredicate predicate)
Returns a stream consisting of the elements of this stream that match
the given predicate.
|
IntStream |
IntStream.filterNot(IntPredicate predicate)
Returns a stream consisting of the elements of this stream that don't
match the given predicate.
|
IntStream |
IntStream.flatMap(IntFunction<? extends IntStream> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped stream produced by applying
the provided mapping function to each element.
|
IntStream |
Stream.flatMapToInt(Function<? super T,? extends IntStream> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped stream produced by applying
the provided mapping function to each element.
|
static IntStream |
IntStream.generate(IntSupplier s)
Returns an infinite sequential unordered stream where each element is
generated by the provided
IntSupplier. |
IntStream |
RandomCompat.ints()
Returns an effectively unlimited stream of pseudorandom
int
values. |
IntStream |
RandomCompat.ints(int randomNumberOrigin,
int randomNumberBound)
Returns an effectively unlimited stream of pseudorandom
int
values, each conforming to the given origin (inclusive) and bound (exclusive) |
IntStream |
RandomCompat.ints(long streamSize)
Returns a stream producing the given
streamSize number of
pseudorandom int values. |
IntStream |
RandomCompat.ints(long streamSize,
int randomNumberOrigin,
int randomNumberBound)
Returns a stream producing the given
streamSize number
of pseudorandom int values, each conforming to the given
origin (inclusive) and bound (exclusive). |
static IntStream |
IntStream.iterate(int seed,
IntPredicate predicate,
IntUnaryOperator op)
Creates an
IntStream by iterative application IntUnaryOperator function
to an initial element seed, conditioned on satisfying the supplied predicate. |
static IntStream |
IntStream.iterate(int seed,
IntUnaryOperator f)
Returns an infinite sequential ordered
IntStream produced by iterative
application of a function f to an initial element seed,
producing a Stream consisting of seed, f(seed),
f(f(seed)), etc. |
IntStream |
IntStream.limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated
to be no longer than
maxSize in length. |
IntStream |
IntStream.map(IntUnaryOperator mapper)
Returns an
IntStream consisting of the results of applying the given
function to the elements of this stream. |
IntStream |
DoubleStream.mapToInt(DoubleToIntFunction mapper)
Returns an
IntStream consisting of the results of applying the given
function to the elements of this stream. |
IntStream |
LongStream.mapToInt(LongToIntFunction mapper)
Returns an
IntStream consisting of the results of applying the given
function to the elements of this stream. |
IntStream |
Stream.mapToInt(ToIntFunction<? super T> mapper)
Returns
IntStream with elements that obtained by applying the given function. |
static IntStream |
IntStream.of(int... values)
Returns stream whose elements are the specified values.
|
static IntStream |
IntStream.of(int t)
Returns stream which contains single element passed as parameter.
|
static IntStream |
IntStream.of(PrimitiveIterator.OfInt iterator)
Creates a
IntStream from PrimitiveIterator.OfInt. |
static IntStream |
IntStream.ofCodePoints(CharSequence charSequence)
Creates an
IntStream of code point values from the given sequence. |
IntStream |
IntStream.onClose(Runnable closeHandler)
Adds close handler to the current stream.
|
IntStream |
IntStream.peek(IntConsumer action)
Returns a stream consisting of the elements of this stream, additionally
performing the provided action on each element as elements are consumed
from the resulting stream.
|
static IntStream |
IntStream.range(int startInclusive,
int endExclusive)
Returns a sequential ordered
IntStream from startInclusive
(inclusive) to endExclusive (exclusive) by an incremental step of
1. |
static IntStream |
IntStream.rangeClosed(int startInclusive,
int endInclusive)
Returns a sequential ordered
IntStream from startInclusive
(inclusive) to endInclusive (inclusive) by an incremental step of
1. |
IntStream |
IntStream.sample(int stepWidth)
Samples the
IntStream by emitting every n-th element. |
IntStream |
IntStream.scan(IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
IntStream |
IntStream.scan(int identity,
IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
IntStream |
IntStream.skip(long n)
Returns a stream consisting of the remaining elements of this stream
after discarding the first
n elements of the stream. |
IntStream |
IntStream.sorted()
Returns a stream consisting of the elements of this stream in sorted
order.
|
IntStream |
IntStream.sorted(Comparator<Integer> comparator)
Returns
IntStream with sorted elements (as determinated by provided Comparator). |
IntStream |
OptionalInt.stream()
Wraps a value into
IntStream if present, otherwise returns an empty IntStream. |
IntStream |
IntStream.takeUntil(IntPredicate stopPredicate)
Takes elements while the predicate returns
false. |
IntStream |
IntStream.takeWhile(IntPredicate predicate)
Takes elements while the predicate returns
true. |
| Modifier and Type | Method and Description |
|---|---|
static IntStream |
IntStream.concat(IntStream a,
IntStream b)
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
IntStream.custom(Function<IntStream,R> function)
Applies custom operator on stream.
|
IntStream |
IntStream.flatMap(IntFunction<? extends IntStream> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped stream produced by applying
the provided mapping function to each element.
|
IntStream |
Stream.flatMapToInt(Function<? super T,? extends IntStream> mapper)
Returns a stream consisting of the results of replacing each element of
this stream with the contents of a mapped stream produced by applying
the provided mapping function to each element.
|
| Constructor and Description |
|---|
IntFlatMap(PrimitiveIterator.OfInt iterator,
IntFunction<? extends IntStream> mapper) |
ObjFlatMapToInt(Iterator<? extends T> iterator,
Function<? super T,? extends IntStream> mapper) |
Copyright © 2017. All rights reserved.