Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
|
java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
java.util.stream |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
DoubleStream |
Random.doubles()
Returns a stream of pseudorandom, uniformly distributed
double values between 0.0 and 1.0
from this random number generator's sequence. |
DoubleStream |
Random.gaussians()
Returns a stream of pseudorandom, Gaussian ("normally")
distributed
double values with mean 0.0
and standard deviation 1.0 from this random number
generator's sequence. |
static DoubleStream |
Arrays.stream(double[] array)
Returns a sequential
DoubleStream with the specified array as its
source. |
static DoubleStream |
Arrays.stream(double[] array,
int startInclusive,
int endExclusive)
Returns a sequential
DoubleStream with the specified range of the
specified array as its source. |
Modifier and Type | Method and Description |
---|---|
DoubleStream |
ThreadLocalRandom.doubles() |
DoubleStream |
ThreadLocalRandom.gaussians() |
Modifier and Type | Method and Description |
---|---|
DoubleStream |
StreamBuilder.OfDouble.build()
Builds the stream, transitioning this builder to the built state.
|
DoubleStream |
DoubleStream.distinct()
Returns a stream consisting of the distinct elements of this stream.
|
static DoubleStream |
StreamSupport.doubleParallelStream(Spliterator.OfDouble spliterator)
Creates a new parallel
DoubleStream from a
Spliterator.OfDouble . |
static DoubleStream |
StreamSupport.doubleParallelStream(Supplier<? extends Spliterator.OfDouble> supplier,
int characteristics)
Creates a new parallel
DoubleStream from a Supplier of
Spliterator.OfDouble . |
DoubleStream |
IntStream.doubles()
Returns a
DoubleStream consisting of the elements of this stream,
converted to double . |
DoubleStream |
LongStream.doubles()
Returns a
DoubleStream consisting of the elements of this stream,
converted to double . |
static DoubleStream |
StreamSupport.doubleStream(Spliterator.OfDouble spliterator)
Creates a new sequential
DoubleStream from a
Spliterator.OfDouble . |
static DoubleStream |
StreamSupport.doubleStream(Supplier<? extends Spliterator.OfDouble> supplier,
int characteristics)
Creates a new sequential
DoubleStream from a Supplier of
Spliterator.OfDouble . |
static DoubleStream |
DoubleStream.empty()
Returns an empty sequential
DoubleStream . |
DoubleStream |
DoubleStream.filter(DoublePredicate predicate)
Returns a stream consisting of the elements of this stream that match
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 the stream produced by applying the
provided mapping function to each element.
|
DoubleStream |
DelegatingStream.flatMapToDouble(Function<? super T,? extends DoubleStream> mapper) |
DoubleStream |
Stream.flatMapToDouble(Function<? super T,? extends DoubleStream> mapper)
Returns a
DoubleStream consisting of the results of replacing each
element of this stream with the contents of the stream produced
by applying the provided mapping function to each element. |
static DoubleStream |
DoubleStream.generate(DoubleSupplier s)
Returns a sequential
DoubleStream where each element is
generated by an DoubleSupplier . |
static DoubleStream |
DoubleStream.iterate(double seed,
DoubleUnaryOperator f)
Returns an infinite sequential
DoubleStream 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. |
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 a stream 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 a
DoubleStream consisting of the results of applying the
given function to the elements of this stream. |
DoubleStream |
DelegatingStream.mapToDouble(ToDoubleFunction<? super T> mapper) |
DoubleStream |
Stream.mapToDouble(ToDoubleFunction<? super T> mapper)
Returns a
DoubleStream consisting of the results of applying the
given function to the elements of this stream. |
static DoubleStream |
DoubleStream.of(double... values)
Returns a sequential stream whose elements are the specified values.
|
static DoubleStream |
DoubleStream.of(double t)
Returns a sequential
DoubleStream containing a single element. |
DoubleStream |
DoubleStream.parallel() |
DoubleStream |
DoubleStream.peek(DoubleConsumer consumer)
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 DoubleStream |
DoubleStream.range(double startInclusive,
double endExclusive)
Returns a sequential
DoubleStream from startInclusive (inclusive)
to endExclusive (exclusive) by an incremental step of 1.0. |
static DoubleStream |
DoubleStream.range(double startInclusive,
double endExclusive,
double step)
Returns a sequential
DoubleStream from startInclusive
(inclusive) to endExclusive (exclusive) by step . |
DoubleStream |
DoubleStream.sequential() |
DoubleStream |
DoubleStream.sorted()
Returns a stream consisting of the elements of this stream in sorted
order.
|
DoubleStream |
DoubleStream.substream(long startInclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream. |
DoubleStream |
DoubleStream.substream(long startInclusive,
long endExclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream and
truncated to contain no more than endExclusive - startInclusive
elements. |
Modifier and Type | Method and Description |
---|---|
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 the stream produced by applying the
provided mapping function to each element.
|
DoubleStream |
DelegatingStream.flatMapToDouble(Function<? super T,? extends DoubleStream> mapper) |
DoubleStream |
Stream.flatMapToDouble(Function<? super T,? extends DoubleStream> mapper)
Returns a
DoubleStream consisting of the results of replacing each
element of this stream with the contents of the stream produced
by applying the provided mapping function to each element. |
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92