Java java.util.stream IntStream fields, constructors, methods, implement or subclass

Example usage for Java java.util.stream IntStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.stream IntStream.

The text is from its open source code.

Method

booleanallMatch(IntPredicate predicate)
Returns whether all elements of this stream match the provided predicate.
booleananyMatch(IntPredicate predicate)
Returns whether any elements of this stream match the provided predicate.
DoubleStreamasDoubleStream()
Returns a DoubleStream consisting of the elements of this stream, converted to double .
LongStreamasLongStream()
Returns a LongStream consisting of the elements of this stream, converted to long .
OptionalDoubleaverage()
Returns an OptionalDouble describing the arithmetic mean of elements of this stream, or an empty optional if this stream is empty.
Streamboxed()
Returns a Stream consisting of the elements of this stream, each boxed to an Integer .
Builderbuilder()
Returns a builder for an IntStream .
Rcollect(Supplier supplier, ObjIntConsumer accumulator, BiConsumer combiner)
Performs a mutable reduction operation on the elements of this stream.
IntStreamconcat(IntStream a, IntStream 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.
longcount()
Returns the count of elements in this stream.
IntStreamdistinct()
Returns a stream consisting of the distinct elements of this stream.
IntStreamempty()
Returns an empty sequential IntStream .
IntStreamfilter(IntPredicate predicate)
Returns a stream consisting of the elements of this stream that match the given predicate.
OptionalIntfindAny()
Returns an OptionalInt describing some element of the stream, or an empty OptionalInt if the stream is empty.
OptionalIntfindFirst()
Returns an OptionalInt describing the first element of this stream, or an empty OptionalInt if the stream is empty.
IntStreamflatMap(IntFunction 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.
voidforEach(IntConsumer action)
Performs an action for each element of this stream.
voidforEachOrdered(IntConsumer 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.
IntStreamgenerate(IntSupplier s)
Returns an infinite sequential unordered stream where each element is generated by the provided IntSupplier .
IntStreamiterate(final int seed, final IntUnaryOperator f)
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.
PrimitiveIterator.OfIntiterator()
IntStreamlimit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated to be no longer than maxSize in length.
IntStreammap(IntUnaryOperator mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
DoubleStreammapToDouble(IntToDoubleFunction mapper)
Returns a DoubleStream consisting of the results of applying the given function to the elements of this stream.
LongStreammapToLong(IntToLongFunction mapper)
Returns a LongStream consisting of the results of applying the given function to the elements of this stream.
StreammapToObj(IntFunction mapper)
Returns an object-valued Stream consisting of the results of applying the given function to the elements of this stream.
OptionalIntmax()
Returns an OptionalInt describing the maximum element of this stream, or an empty optional if this stream is empty.
OptionalIntmin()
Returns an OptionalInt describing the minimum element of this stream, or an empty optional if this stream is empty.
booleannoneMatch(IntPredicate predicate)
Returns whether no elements of this stream match the provided predicate.
IntStreamof(int t)
Returns a sequential IntStream containing a single element.
IntStreamof(int... values)
Returns a sequential ordered stream whose elements are the specified values.
IntStreamparallel()
IntStreampeek(IntConsumer 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.
IntStreamrange(int startInclusive, int endExclusive)
Returns a sequential ordered IntStream from startInclusive (inclusive) to endExclusive (exclusive) by an incremental step of 1 .
IntStreamrangeClosed(int startInclusive, int endInclusive)
Returns a sequential ordered IntStream from startInclusive (inclusive) to endInclusive (inclusive) by an incremental step of 1 .
intreduce(int identity, IntBinaryOperator op)
Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value.
OptionalIntreduce(IntBinaryOperator op)
Performs a reduction on the elements of this stream, using an associative accumulation function, and returns an OptionalInt describing the reduced value, if any.
IntStreamsequential()
IntStreamskip(long n)
Returns a stream consisting of the remaining elements of this stream after discarding the first n elements of the stream.
Spliterator.OfIntspliterator()
intsum()
Returns the sum of elements in this stream.
IntSummaryStatisticssummaryStatistics()
Returns an IntSummaryStatistics describing various summary data about the elements of this stream.
int[]toArray()
Returns an array containing the elements of this stream.