| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
static DoubleStream |
DoubleStream.concat(DoubleStream a,
DoubleStream b)
Concatenates two streams.
|
DoubleStream |
DoubleStream.distinct()
Returns a stream consisting of the distinct elements of this stream.
|
DoubleStream |
RandomCompat.doubles()
Returns an effectively unlimited stream of pseudorandom
double values,
each between zero (inclusive) and one (exclusive). |
DoubleStream |
RandomCompat.doubles(double randomNumberOrigin,
double randomNumberBound)
Returns an effectively unlimited stream of pseudorandom
double
values, each conforming to the given origin (inclusive) and bound (exclusive) |
DoubleStream |
RandomCompat.doubles(long streamSize)
Returns a stream producing the given
streamSize number of
pseudorandom double values, each between zero (inclusive)
and one (exclusive). |
DoubleStream |
RandomCompat.doubles(long streamSize,
double randomNumberOrigin,
double randomNumberBound)
Returns a stream producing the given
streamSize number
of pseudorandom double values, each conforming
to the given origin (inclusive) and bound (exclusive). |
DoubleStream |
DoubleStream.dropWhile(DoublePredicate predicate)
Drops elements while the predicate is true and returns the rest.
|
static DoubleStream |
DoubleStream.empty()
Returns an empty stream.
|
DoubleStream |
DoubleStream.filter(DoublePredicate predicate)
Returns
DoubleStream with elements that satisfy the given predicate. |
DoubleStream |
DoubleStream.filterIndexed(IndexedDoublePredicate predicate)
Returns a
DoubleStream with elements that satisfy the given IndexedDoublePredicate. |
DoubleStream |
DoubleStream.filterIndexed(int from,
int step,
IndexedDoublePredicate predicate)
Returns a
DoubleStream with elements that satisfy the given IndexedDoublePredicate. |
DoubleStream |
DoubleStream.filterNot(DoublePredicate predicate)
Returns
DoubleStream with elements that does not satisfy the given predicate. |
DoubleStream |
DoubleStream.flatMap(DoubleFunction<? extends DoubleStream> 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.
|
DoubleStream |
Stream.flatMapToDouble(Function<? super T,? extends DoubleStream> 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 DoubleStream |
DoubleStream.generate(DoubleSupplier s)
Creates a
DoubleStream by elements that generated by DoubleSupplier. |
static DoubleStream |
DoubleStream.iterate(double seed,
DoublePredicate predicate,
DoubleUnaryOperator op)
Creates an
DoubleStream by iterative application DoubleUnaryOperator function
to an initial element seed, conditioned on satisfying the supplied predicate. |
static DoubleStream |
DoubleStream.iterate(double seed,
DoubleUnaryOperator f)
Creates a
DoubleStream by iterative application DoubleUnaryOperator function
to an initial element seed. |
DoubleStream |
DoubleStream.limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated
to be no longer than
maxSize in length. |
DoubleStream |
DoubleStream.map(DoubleUnaryOperator mapper)
Returns an
DoubleStream consisting of the results of applying the given
function to the elements of this stream. |
DoubleStream |
DoubleStream.mapIndexed(IndexedDoubleUnaryOperator mapper)
Returns a
DoubleStream with elements that obtained
by applying the given IndexedDoubleUnaryOperator. |
DoubleStream |
DoubleStream.mapIndexed(int from,
int step,
IndexedDoubleUnaryOperator mapper)
Returns a
DoubleStream with elements that obtained
by applying the given IndexedDoubleUnaryOperator. |
DoubleStream |
IntStream.mapToDouble(IntToDoubleFunction mapper)
Returns a
DoubleStream consisting of the results of applying the given
function to the elements of this stream. |
DoubleStream |
LongStream.mapToDouble(LongToDoubleFunction mapper)
Returns an
DoubleStream consisting of the results of applying the given
function to the elements of this stream. |
DoubleStream |
Stream.mapToDouble(ToDoubleFunction<? super T> mapper)
Returns
DoubleStream with elements that obtained by applying the given function. |
static DoubleStream |
DoubleStream.of(double... values)
Creates a
DoubleStream from the specified values. |
static DoubleStream |
DoubleStream.of(double t)
Returns stream which contains single element passed as param
|
static DoubleStream |
DoubleStream.of(PrimitiveIterator.OfDouble iterator)
Creates a
DoubleStream from PrimitiveIterator.OfDouble. |
DoubleStream |
DoubleStream.onClose(Runnable closeHandler)
Adds close handler to the current stream.
|
DoubleStream |
DoubleStream.peek(DoubleConsumer action)
Performs provided action on each element.
|
DoubleStream |
DoubleStream.sample(int stepWidth)
Samples the
DoubleStream by emitting every n-th element. |
DoubleStream |
DoubleStream.scan(DoubleBinaryOperator accumulator)
Returns a
DoubleStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
DoubleStream |
DoubleStream.scan(double identity,
DoubleBinaryOperator accumulator)
Returns a
DoubleStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
DoubleStream |
DoubleStream.skip(long n)
Skips first
n elements and returns DoubleStream with remaining elements. |
DoubleStream |
DoubleStream.sorted()
Returns a stream consisting of the elements of this stream in sorted order.
|
DoubleStream |
DoubleStream.sorted(Comparator<Double> comparator)
Returns a stream consisting of the elements of this stream
in sorted order as determinated by provided
Comparator. |
DoubleStream |
OptionalDouble.stream()
Wraps a value into
DoubleStream if present,
otherwise returns an empty DoubleStream. |
DoubleStream |
DoubleStream.takeUntil(DoublePredicate stopPredicate)
Takes elements while the predicate returns
false. |
DoubleStream |
DoubleStream.takeWhile(DoublePredicate predicate)
Takes elements while the predicate returns
true. |
| Modifier and Type | Method and Description |
|---|---|
static DoubleStream |
DoubleStream.concat(DoubleStream a,
DoubleStream b)
Concatenates two streams.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
DoubleStream.custom(Function<DoubleStream,R> function)
Applies custom operator on stream.
|
DoubleStream |
DoubleStream.flatMap(DoubleFunction<? extends DoubleStream> 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.
|
DoubleStream |
Stream.flatMapToDouble(Function<? super T,? extends DoubleStream> 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 |
|---|
DoubleFlatMap(PrimitiveIterator.OfDouble iterator,
DoubleFunction<? extends DoubleStream> mapper) |
ObjFlatMapToDouble(Iterator<? extends T> iterator,
Function<? super T,? extends DoubleStream> mapper) |
Copyright © 2018. All rights reserved.