Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
static DoubleStream |
DoubleStream.concat(double[] a,
double[] b) |
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 |
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.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 |
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(com.annimon.stream.iterator.PrimitiveIterator.OfDouble iterator)
Creates a
DoubleStream from PrimitiveIterator.OfDouble . |
DoubleStream |
DoubleStream.onClose(java.lang.Runnable closeHandler)
Adds close handler to the current stream.
|
DoubleStream |
DoubleStream.peek(DoubleConsumer action)
Performs provided action on each 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(java.util.Comparator<java.lang.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.chain(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.
|