AutoCloseable
, BaseStream<Integer, IntStream>
Nested Classes
static interface
A mutable builder for an IntStream
.
static interface
Represents an operation that accepts an int
-valued argument and an IntConsumer, and returns no result.
boolean
Returns whether all elements of this stream match the provided predicate.
boolean
Returns whether any elements of this stream match the provided predicate.
Returns a DoubleStream
consisting of the elements of this stream, converted to double
.
Returns a LongStream
consisting of the elements of this stream, converted to long
.
Returns an OptionalDouble
describing the arithmetic mean of elements of this stream, or an empty optional if this stream is empty.
Returns a Stream
consisting of the elements of this stream, each boxed to an Integer
.
Returns a builder for an IntStream
.
<R> R
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
Returns the count of elements in this stream.
Returns a stream consisting of the distinct elements of this stream.
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.
Returns an empty sequential IntStream
.
Returns a stream consisting of the elements of this stream that match the given predicate.
Returns an
OptionalInt
describing some element of the stream, or an empty
OptionalInt
if the stream is empty.
Returns an
OptionalInt
describing the first element of this stream, or an empty
OptionalInt
if the stream is empty.
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
Performs an action for each element of this stream.
void
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.
Returns an infinite sequential unordered stream where each element is generated by the provided IntSupplier
.
Returns a sequential ordered IntStream
produced by iterative application of the given next
function to an initial element, conditioned on satisfying the given hasNext
predicate.
Returns an infinite sequential ordered IntStream
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.
Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize
in length.
Returns a stream consisting of the results of applying the given function to the elements of this stream.
Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.
Returns a DoubleStream
consisting of the results of applying the given function to the elements of this stream.
Returns a LongStream
consisting of the results of applying the given function to the elements of this stream.
Returns an object-valued Stream
consisting of the results of applying the given function to the elements of this stream.
Returns an OptionalInt
describing the maximum element of this stream, or an empty optional if this stream is empty.
Returns an OptionalInt
describing the minimum element of this stream, or an empty optional if this stream is empty.
boolean
Returns whether no elements of this stream match the provided predicate.
Returns a sequential IntStream
containing a single element.
Returns a sequential ordered stream whose elements are the specified values.
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.
range(int startInclusive, int endExclusive)
Returns a sequential ordered IntStream
from startInclusive
(inclusive) to endExclusive
(exclusive) by an incremental step of 1
.
Returns a sequential ordered IntStream
from startInclusive
(inclusive) to endInclusive
(inclusive) by an incremental step of 1
.
int
Performs a
reductionon the elements of this stream, using the provided identity value and an
associativeaccumulation function, and returns the reduced value.
Performs a
reductionon the elements of this stream, using an
associativeaccumulation function, and returns an
OptionalInt
describing the reduced value, if any.
Returns a stream consisting of the remaining elements of this stream after discarding the first n
elements of the stream.
Returns a stream consisting of the elements of this stream in sorted order.
int
Returns the sum of elements in this stream.
Returns an IntSummaryStatistics
describing various summary data about the elements of this stream.
Returns, if this stream is ordered, a stream consisting of the longest prefix of elements taken from this stream that match the given predicate.
int[]
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