| Package | Description | 
|---|---|
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| java.nio | Defines buffers, which are containers for data, and provides an overview of the
other NIO packages. | 
| java.util | Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array). | 
| java.util.concurrent | Utility classes commonly useful in concurrent programming. | 
| java.util.stream | Classes to support functional-style operations on streams of elements, such
 as map-reduce transformations on collections. | 
| Modifier and Type | Method and Description | 
|---|---|
| default IntStream | CharSequence. chars()Returns a stream of  intzero-extending thecharvalues
 from this sequence. | 
| default IntStream | CharSequence. codePoints()Returns a stream of code point values from this sequence. | 
| Modifier and Type | Method and Description | 
|---|---|
| IntStream | CharBuffer. chars() | 
| Modifier and Type | Method and Description | 
|---|---|
| IntStream | SplittableRandom. ints()Returns an effectively unlimited stream of pseudorandom  intvalues from this generator and/or one split from it. | 
| IntStream | Random. ints()Returns an effectively unlimited stream of pseudorandom  intvalues. | 
| IntStream | SplittableRandom. ints(int randomNumberOrigin,
    int randomNumberBound)Returns an effectively unlimited stream of pseudorandom  intvalues from this generator and/or one split from it; each value
 conforms to the given origin (inclusive) and bound (exclusive). | 
| IntStream | Random. ints(int randomNumberOrigin,
    int randomNumberBound)Returns an effectively unlimited stream of pseudorandom  intvalues, each conforming to the given origin (inclusive) and bound
 (exclusive). | 
| IntStream | SplittableRandom. ints(long streamSize)Returns a stream producing the given  streamSizenumber
 of pseudorandomintvalues from this generator and/or
 one split from it. | 
| IntStream | Random. ints(long streamSize)Returns a stream producing the given  streamSizenumber of
 pseudorandomintvalues. | 
| IntStream | SplittableRandom. ints(long streamSize,
    int randomNumberOrigin,
    int randomNumberBound)Returns a stream producing the given  streamSizenumber
 of pseudorandomintvalues from this generator and/or one split
 from it; each value conforms to the given origin (inclusive) and bound
 (exclusive). | 
| IntStream | Random. ints(long streamSize,
    int randomNumberOrigin,
    int randomNumberBound)Returns a stream producing the given  streamSizenumber
 of pseudorandomintvalues, each conforming to the given
 origin (inclusive) and bound (exclusive). | 
| IntStream | BitSet. stream()Returns a stream of indices for which this  BitSetcontains a bit in the set state. | 
| static IntStream | Arrays. stream(int[] array)Returns a sequential  IntStreamwith the specified array as its
 source. | 
| static IntStream | Arrays. stream(int[] array,
      int startInclusive,
      int endExclusive)Returns a sequential  IntStreamwith the specified range of the
 specified array as its source. | 
| Modifier and Type | Method and Description | 
|---|---|
| IntStream | ThreadLocalRandom. ints()Returns an effectively unlimited stream of pseudorandom  intvalues. | 
| IntStream | ThreadLocalRandom. ints(int randomNumberOrigin,
    int randomNumberBound)Returns an effectively unlimited stream of pseudorandom  intvalues, each conforming to the given origin (inclusive) and bound
 (exclusive). | 
| IntStream | ThreadLocalRandom. ints(long streamSize)Returns a stream producing the given  streamSizenumber of
 pseudorandomintvalues. | 
| IntStream | ThreadLocalRandom. ints(long streamSize,
    int randomNumberOrigin,
    int randomNumberBound)Returns a stream producing the given  streamSizenumber
 of pseudorandomintvalues, each conforming to the given
 origin (inclusive) and bound (exclusive). | 
| Modifier and Type | Method and Description | 
|---|---|
| IntStream | IntStream.Builder. build()Builds the stream, transitioning this builder to the built state. | 
| static IntStream | IntStream. concat(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. | 
| IntStream | IntStream. distinct()Returns a stream consisting of the distinct elements of this stream. | 
| static IntStream | IntStream. empty()Returns an empty sequential  IntStream. | 
| IntStream | IntStream. filter(IntPredicate predicate)Returns a stream consisting of the elements of this stream that match
 the given predicate. | 
| IntStream | 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. | 
| IntStream | Stream. flatMapToInt(Function<? super T,? extends IntStream> mapper)Returns an  IntStreamconsisting 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 IntStream | IntStream. generate(IntSupplier s)Returns an infinite sequential unordered stream where each element is
 generated by the provided  IntSupplier. | 
| static IntStream | StreamSupport. intStream(Spliterator.OfInt spliterator,
         boolean parallel)Creates a new sequential or parallel  IntStreamfrom aSpliterator.OfInt. | 
| static IntStream | StreamSupport. intStream(Supplier<? extends Spliterator.OfInt> supplier,
         int characteristics,
         boolean parallel)Creates a new sequential or parallel  IntStreamfrom aSupplierofSpliterator.OfInt. | 
| static IntStream | IntStream. iterate(int seed,
       IntUnaryOperator f)Returns an infinite sequential ordered  IntStreamproduced by iterative
 application of a functionfto an initial elementseed,
 producing aStreamconsisting ofseed,f(seed),f(f(seed)), etc. | 
| IntStream | IntStream. limit(long maxSize)Returns a stream consisting of the elements of this stream, truncated
 to be no longer than  maxSizein length. | 
| IntStream | IntStream. map(IntUnaryOperator mapper)Returns a stream consisting of the results of applying the given
 function to the elements of this stream. | 
| IntStream | DoubleStream. mapToInt(DoubleToIntFunction mapper)Returns an  IntStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| IntStream | LongStream. mapToInt(LongToIntFunction mapper)Returns an  IntStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| IntStream | Stream. mapToInt(ToIntFunction<? super T> mapper)Returns an  IntStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| static IntStream | IntStream. of(int... values)Returns a sequential ordered stream whose elements are the specified values. | 
| static IntStream | IntStream. of(int t)Returns a sequential  IntStreamcontaining a single element. | 
| IntStream | IntStream. parallel() | 
| IntStream | 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 IntStream | IntStream. range(int startInclusive,
     int endExclusive)Returns a sequential ordered  IntStreamfromstartInclusive(inclusive) toendExclusive(exclusive) by an incremental step of1. | 
| static IntStream | IntStream. rangeClosed(int startInclusive,
           int endInclusive)Returns a sequential ordered  IntStreamfromstartInclusive(inclusive) toendInclusive(inclusive) by an incremental step of1. | 
| IntStream | IntStream. sequential() | 
| IntStream | IntStream. skip(long n)Returns a stream consisting of the remaining elements of this stream
 after discarding the first  nelements of the stream. | 
| IntStream | IntStream. sorted()Returns a stream consisting of the elements of this stream in sorted
 order. | 
| Modifier and Type | Method and Description | 
|---|---|
| static IntStream | IntStream. concat(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. | 
| Modifier and Type | Method and Description | 
|---|---|
| IntStream | 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. | 
| IntStream | Stream. flatMapToInt(Function<? super T,? extends IntStream> mapper)Returns an  IntStreamconsisting 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. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.