Uses of Interface
java.util.stream.IntStream
Packages that use IntStream
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
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 IntStream in java.lang
Modifier and TypeMethodDescriptiondefault IntStreamCharSequence.chars()Returns a stream ofintzero-extending thecharvalues from this sequence.String.chars()Returns a stream ofintzero-extending thecharvalues from this sequence.default IntStreamCharSequence.codePoints()Returns a stream of code point values from this sequence.String.codePoints()Returns a stream of code point values from this sequence. -
Uses of IntStream in java.util
Modifier and TypeMethodDescriptionRandom.ints()Returns an effectively unlimited stream of pseudorandomintvalues.Random.ints(int randomNumberOrigin, int randomNumberBound) Returns an effectively unlimited stream of pseudorandomintvalues, each conforming to the given origin (inclusive) and bound (exclusive).Random.ints(long streamSize) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues.Random.ints(long streamSize, int randomNumberOrigin, int randomNumberBound) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues, each conforming to the given origin (inclusive) and bound (exclusive).SplittableRandom.ints()Returns an effectively unlimited stream of pseudorandomintvalues from this generator and/or one split from it.SplittableRandom.ints(int randomNumberOrigin, int randomNumberBound) Returns an effectively unlimited stream of pseudorandomintvalues from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).SplittableRandom.ints(long streamSize) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues from this generator and/or one split from it.SplittableRandom.ints(long streamSize, int randomNumberOrigin, int randomNumberBound) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues from this generator and/or one split from it; each value conforms to the given origin (inclusive) and bound (exclusive).static IntStreamArrays.stream(int[] array) Returns a sequentialIntStreamwith the specified array as its source.static IntStreamArrays.stream(int[] array, int startInclusive, int endExclusive) Returns a sequentialIntStreamwith the specified range of the specified array as its source.BitSet.stream()Returns a stream of indices for which thisBitSetcontains a bit in the set state.OptionalInt.stream()If a value is present, returns a sequentialIntStreamcontaining only that value, otherwise returns an emptyIntStream. -
Uses of IntStream in java.util.concurrent
Methods in java.util.concurrent that return IntStreamModifier and TypeMethodDescriptionThreadLocalRandom.ints()Returns an effectively unlimited stream of pseudorandomintvalues.ThreadLocalRandom.ints(int randomNumberOrigin, int randomNumberBound) Returns an effectively unlimited stream of pseudorandomintvalues, each conforming to the given origin (inclusive) and bound (exclusive).ThreadLocalRandom.ints(long streamSize) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues.ThreadLocalRandom.ints(long streamSize, int randomNumberOrigin, int randomNumberBound) Returns a stream producing the givenstreamSizenumber of pseudorandomintvalues, each conforming to the given origin (inclusive) and bound (exclusive). -
Uses of IntStream in java.util.random
Methods in java.util.random that return IntStreamModifier and TypeMethodDescriptiondefault IntStreamRandomGenerator.ints()Returns an effectively unlimited stream of pseudorandomly chosenintvalues.default IntStreamRandomGenerator.ints(int randomNumberOrigin, int randomNumberBound) Returns an effectively unlimited stream of pseudorandomly chosenintvalues, where each value is between the specified origin (inclusive) and the specified bound (exclusive).default IntStreamRandomGenerator.ints(long streamSize) Returns a stream producing the givenstreamSizenumber of pseudorandomly chosenintvalues.default IntStreamRandomGenerator.ints(long streamSize, int randomNumberOrigin, int randomNumberBound) Returns a stream producing the givenstreamSizenumber of pseudorandomly chosenintvalues, where each value is between the specified origin (inclusive) and the specified bound (exclusive). -
Uses of IntStream in java.util.stream
Methods in java.util.stream that return IntStreamModifier and TypeMethodDescriptionIntStream.Builder.build()Builds the stream, transitioning this builder to the built state.static IntStreamCreates a lazily concatenated stream whose elements are all the elements of the first stream followed by all the elements of the second stream.IntStream.distinct()Returns a stream consisting of the distinct elements of this stream.default IntStreamIntStream.dropWhile(IntPredicate 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 IntStreamIntStream.empty()Returns an empty sequentialIntStream.IntStream.filter(IntPredicate predicate) Returns a stream consisting of the elements of this stream that match the given predicate.IntStream.flatMap(IntFunction<? extends IntStream> 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.flatMapToInt(Function<? super T, ? extends IntStream> mapper) Returns anIntStreamconsisting 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 IntStreamIntStream.generate(IntSupplier s) Returns an infinite sequential unordered stream where each element is generated by the providedIntSupplier.static IntStreamStreamSupport.intStream(Supplier<? extends Spliterator.OfInt> supplier, int characteristics, boolean parallel) Creates a new sequential or parallelIntStreamfrom aSupplierofSpliterator.OfInt.static IntStreamStreamSupport.intStream(Spliterator.OfInt spliterator, boolean parallel) Creates a new sequential or parallelIntStreamfrom aSpliterator.OfInt.static IntStreamIntStream.iterate(int seed, IntPredicate hasNext, IntUnaryOperator next) Returns a sequential orderedIntStreamproduced by iterative application of the givennextfunction to an initial element, conditioned on satisfying the givenhasNextpredicate.static IntStreamIntStream.iterate(int seed, IntUnaryOperator f) Returns an infinite sequential orderedIntStreamproduced by iterative application of a functionfto an initial elementseed, producing aStreamconsisting ofseed,f(seed),f(f(seed)), etc.IntStream.limit(long maxSize) Returns a stream consisting of the elements of this stream, truncated to be no longer thanmaxSizein length.IntStream.map(IntUnaryOperator mapper) Returns a stream consisting of the results of applying the given function to the elements of this stream.default IntStreamIntStream.mapMulti(IntStream.IntMapMultiConsumer mapper) Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.default IntStreamStream.mapMultiToInt(BiConsumer<? super T, ? super IntConsumer> mapper) Returns anIntStreamconsisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.DoubleStream.mapToInt(DoubleToIntFunction mapper) Returns anIntStreamconsisting of the results of applying the given function to the elements of this stream.LongStream.mapToInt(LongToIntFunction mapper) Returns anIntStreamconsisting of the results of applying the given function to the elements of this stream.Stream.mapToInt(ToIntFunction<? super T> mapper) Returns anIntStreamconsisting of the results of applying the given function to the elements of this stream.static IntStreamIntStream.of(int t) Returns a sequentialIntStreamcontaining a single element.static IntStreamIntStream.of(int... values) Returns a sequential ordered stream whose elements are the specified values.IntStream.peek(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.static IntStreamIntStream.range(int startInclusive, int endExclusive) Returns a sequential orderedIntStreamfromstartInclusive(inclusive) toendExclusive(exclusive) by an incremental step of1.static IntStreamIntStream.rangeClosed(int startInclusive, int endInclusive) Returns a sequential orderedIntStreamfromstartInclusive(inclusive) toendInclusive(inclusive) by an incremental step of1.IntStream.skip(long n) Returns a stream consisting of the remaining elements of this stream after discarding the firstnelements of the stream.IntStream.sorted()Returns a stream consisting of the elements of this stream in sorted order.default IntStreamIntStream.takeWhile(IntPredicate 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.Methods in java.util.stream with parameters of type IntStreamModifier and TypeMethodDescriptionstatic IntStreamCreates a lazily concatenated stream whose elements are all the elements of the first stream followed by all the elements of the second stream.Method parameters in java.util.stream with type arguments of type IntStreamModifier and TypeMethodDescriptionIntStream.flatMap(IntFunction<? extends IntStream> 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.flatMapToInt(Function<? super T, ? extends IntStream> mapper) Returns anIntStreamconsisting 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.