boolean
allMatch(DoublePredicate predicate)
Returns whether all elements of this stream match the provided predicate.
boolean
anyMatch(DoublePredicate predicate)
Returns whether any elements of this stream match the provided predicate.
OptionalDouble
average()
Returns an OptionalDouble
describing the arithmetic mean of elements of this stream, or an empty optional if this stream is empty.
Stream<Double>
boxed()
Returns a Stream
consisting of the elements of this stream, boxed to Double
.
static DoubleStream.Builder
builder()
Returns a builder for a DoubleStream
.
<R> R
collect(Supplier<R> supplier, ObjDoubleConsumer<R> accumulator, BiConsumer<R,R> combiner)
static 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.
long
count()
Returns the count of elements in this stream.
DoubleStream
distinct()
Returns a stream consisting of the distinct elements of this stream.
static DoubleStream
empty()
Returns an empty sequential DoubleStream
.
DoubleStream
filter(DoublePredicate predicate)
Returns a stream consisting of the elements of this stream that match the given predicate.
OptionalDouble
findAny()
Returns an
OptionalDouble
describing some element of the stream, or an empty
OptionalDouble
if the stream is empty.
OptionalDouble
findFirst()
Returns an
OptionalDouble
describing the first element of this stream, or an empty
OptionalDouble
if the stream is empty.
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.
void
forEach(DoubleConsumer action)
Performs an action for each element of this stream.
void
forEachOrdered(DoubleConsumer action)
Performs an action for each element of this stream, guaranteeing that each element is processed in encounter order for streams that have a defined encounter order.
static DoubleStream
generate(DoubleSupplier s)
Returns an infinite sequential unordered stream where each element is generated by the provided DoubleSupplier
.
static DoubleStream
iterate(double seed, DoubleUnaryOperator f)
Returns an infinite sequential ordered 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.
PrimitiveIterator.OfDouble
iterator()
Returns an iterator for the elements of this stream.
DoubleStream
limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize
in length.
DoubleStream
map(DoubleUnaryOperator mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
IntStream
mapToInt(DoubleToIntFunction mapper)
Returns an IntStream
consisting of the results of applying the given function to the elements of this stream.
LongStream
mapToLong(DoubleToLongFunction mapper)
Returns a LongStream
consisting of the results of applying the given function to the elements of this stream.
<U> Stream<U>
mapToObj(DoubleFunction<? extends U> mapper)
Returns an object-valued Stream
consisting of the results of applying the given function to the elements of this stream.
OptionalDouble
max()
Returns an OptionalDouble
describing the maximum element of this stream, or an empty OptionalDouble if this stream is empty.
OptionalDouble
min()
Returns an OptionalDouble
describing the minimum element of this stream, or an empty OptionalDouble if this stream is empty.
boolean
noneMatch(DoublePredicate predicate)
Returns whether no elements of this stream match the provided predicate.
static DoubleStream
of(double... values)
Returns a sequential ordered stream whose elements are the specified values.
static DoubleStream
of(double t)
Returns a sequential DoubleStream
containing a single element.
DoubleStream
parallel()
Returns an equivalent stream that is parallel.
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.
OptionalDouble
reduce(DoubleBinaryOperator op)
Performs a
reductionon the elements of this stream, using an
associativeaccumulation function, and returns an
OptionalDouble
describing the reduced value, if any.
double
reduce(double identity, DoubleBinaryOperator op)
Performs a
reductionon the elements of this stream, using the provided identity value and an
associativeaccumulation function, and returns the reduced value.
DoubleStream
sequential()
Returns an equivalent stream that is sequential.
DoubleStream
skip(long n)
Returns a stream consisting of the remaining elements of this stream after discarding the first n
elements of the stream.
DoubleStream
sorted()
Returns a stream consisting of the elements of this stream in sorted order.
Spliterator.OfDouble
spliterator()
Returns a spliterator for the elements of this stream.
double
sum()
Returns the sum of elements in this stream.
DoubleSummaryStatistics
summaryStatistics()
Returns a DoubleSummaryStatistics
describing various summary data about the elements of this stream.
double[]
toArray()
Returns an array containing the elements of this stream.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4