Uses of Interface
java.util.stream.DoubleStream
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
This package contains classes and interfaces that support a generic API
for random number generation.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of DoubleStream in java.util
Modifier and TypeMethodDescriptionRandom.doubles()
Returns an effectively unlimited stream of pseudorandomdouble
values, each between zero (inclusive) and one (exclusive).Random.doubles
(double randomNumberOrigin, double randomNumberBound) Returns an effectively unlimited stream of pseudorandomdouble
values, each conforming to the given origin (inclusive) and bound (exclusive).Random.doubles
(long streamSize) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values, each between zero (inclusive) and one (exclusive).Random.doubles
(long streamSize, double randomNumberOrigin, double randomNumberBound) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values, each conforming to the given origin (inclusive) and bound (exclusive).SplittableRandom.doubles()
Returns an effectively unlimited stream of pseudorandomdouble
values from this generator and/or one split from it; each value is between zero (inclusive) and one (exclusive).SplittableRandom.doubles
(double randomNumberOrigin, double randomNumberBound) Returns an effectively unlimited stream of pseudorandomdouble
values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).SplittableRandom.doubles
(long streamSize) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values from this generator and/or one split from it; each value is between zero (inclusive) and one (exclusive).SplittableRandom.doubles
(long streamSize, double randomNumberOrigin, double randomNumberBound) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).static DoubleStream
Arrays.stream
(double[] array) Returns a sequentialDoubleStream
with the specified array as its source.static DoubleStream
Arrays.stream
(double[] array, int startInclusive, int endExclusive) Returns a sequentialDoubleStream
with the specified range of the specified array as its source.OptionalDouble.stream()
If a value is present, returns a sequentialDoubleStream
containing only that value, otherwise returns an emptyDoubleStream
. -
Uses of DoubleStream in java.util.concurrent
Modifier and TypeMethodDescriptionThreadLocalRandom.doubles()
Returns an effectively unlimited stream of pseudorandomdouble
values, each between zero (inclusive) and one (exclusive).ThreadLocalRandom.doubles
(double randomNumberOrigin, double randomNumberBound) Returns an effectively unlimited stream of pseudorandomdouble
values, each conforming to the given origin (inclusive) and bound (exclusive).ThreadLocalRandom.doubles
(long streamSize) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values, each between zero (inclusive) and one (exclusive).ThreadLocalRandom.doubles
(long streamSize, double randomNumberOrigin, double randomNumberBound) Returns a stream producing the givenstreamSize
number of pseudorandomdouble
values, each conforming to the given origin (inclusive) and bound (exclusive). -
Uses of DoubleStream in java.util.random
Modifier and TypeMethodDescriptiondefault DoubleStream
RandomGenerator.doubles()
Returns an effectively unlimited stream of pseudorandomly chosendouble
values.default DoubleStream
RandomGenerator.doubles
(double randomNumberOrigin, double randomNumberBound) Returns an effectively unlimited stream of pseudorandomly chosendouble
values, where each value is between the specified origin (inclusive) and the specified bound (exclusive).default DoubleStream
RandomGenerator.doubles
(long streamSize) Returns a stream producing the givenstreamSize
number of pseudorandomly chosendouble
values.default DoubleStream
RandomGenerator.doubles
(long streamSize, double randomNumberOrigin, double randomNumberBound) Returns a stream producing the givenstreamSize
number of pseudorandomly chosendouble
values, where each value is between the specified origin (inclusive) and the specified bound (exclusive).default DoubleStream
RandomGenerator.equiDoubles
(double left, double right, boolean isLeftIncluded, boolean isRightIncluded) Returns an effectively unlimited stream of pseudorandomly chosendouble
values, where each value is between the specifiedleft
boundary and the specifiedright
boundary. -
Uses of DoubleStream in java.util.stream
Modifier and TypeMethodDescriptionIntStream.asDoubleStream()
Returns aDoubleStream
consisting of the elements of this stream, converted todouble
.LongStream.asDoubleStream()
Returns aDoubleStream
consisting of the elements of this stream, converted todouble
.DoubleStream.Builder.build()
Builds the stream, transitioning this builder to the built state.static DoubleStream
DoubleStream.concat
(DoubleStream a, DoubleStream 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.DoubleStream.distinct()
Returns a stream consisting of the distinct elements of this stream.static DoubleStream
StreamSupport.doubleStream
(Supplier<? extends Spliterator.OfDouble> supplier, int characteristics, boolean parallel) Creates a new sequential or parallelDoubleStream
from aSupplier
ofSpliterator.OfDouble
.static DoubleStream
StreamSupport.doubleStream
(Spliterator.OfDouble spliterator, boolean parallel) Creates a new sequential or parallelDoubleStream
from aSpliterator.OfDouble
.default DoubleStream
DoubleStream.dropWhile
(DoublePredicate predicate) Returns, if this stream is ordered, a stream consisting of the remaining elements of this stream after dropping the longest prefix of elements that match the given predicate.static DoubleStream
DoubleStream.empty()
Returns an empty sequentialDoubleStream
.DoubleStream.filter
(DoublePredicate predicate) Returns a stream consisting of the elements of this stream that match the given predicate.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.Stream.flatMapToDouble
(Function<? super T, ? extends DoubleStream> mapper) Returns anDoubleStream
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) Returns an infinite sequential unordered stream where each element is generated by the providedDoubleSupplier
.static DoubleStream
DoubleStream.iterate
(double seed, DoublePredicate hasNext, DoubleUnaryOperator next) Returns a sequential orderedDoubleStream
produced by iterative application of the givennext
function to an initial element, conditioned on satisfying the givenhasNext
predicate.static DoubleStream
DoubleStream.iterate
(double seed, DoubleUnaryOperator f) Returns an infinite sequential orderedDoubleStream
produced by iterative application of a functionf
to an initial elementseed
, producing aStream
consisting ofseed
,f(seed)
,f(f(seed))
, etc.DoubleStream.limit
(long maxSize) Returns a stream consisting of the elements of this stream, truncated to be no longer thanmaxSize
in length.DoubleStream.map
(DoubleUnaryOperator mapper) Returns a stream consisting of the results of applying the given function to the elements of this stream.default DoubleStream
DoubleStream.mapMulti
(DoubleStream.DoubleMapMultiConsumer mapper) Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.default DoubleStream
Stream.mapMultiToDouble
(BiConsumer<? super T, ? super DoubleConsumer> mapper) Returns aDoubleStream
consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.IntStream.mapToDouble
(IntToDoubleFunction mapper) Returns aDoubleStream
consisting of the results of applying the given function to the elements of this stream.LongStream.mapToDouble
(LongToDoubleFunction mapper) Returns aDoubleStream
consisting of the results of applying the given function to the elements of this stream.Stream.mapToDouble
(ToDoubleFunction<? super T> mapper) Returns aDoubleStream
consisting of the results of applying the given function to the elements of this stream.static DoubleStream
DoubleStream.of
(double t) Returns a sequentialDoubleStream
containing a single element.static DoubleStream
DoubleStream.of
(double... values) Returns a sequential ordered stream whose elements are the specified values.DoubleStream.peek
(DoubleConsumer 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.DoubleStream.skip
(long n) Returns a stream consisting of the remaining elements of this stream after discarding the firstn
elements of the stream.DoubleStream.sorted()
Returns a stream consisting of the elements of this stream in sorted order.default DoubleStream
DoubleStream.takeWhile
(DoublePredicate predicate) Returns, if this stream is ordered, a stream consisting of the longest prefix of elements taken from this stream that match the given predicate.Modifier and TypeMethodDescriptionstatic DoubleStream
DoubleStream.concat
(DoubleStream a, DoubleStream 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 TypeMethodDescriptionDoubleStream.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.Stream.flatMapToDouble
(Function<? super T, ? extends DoubleStream> mapper) Returns anDoubleStream
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.