| Package | Description | 
|---|---|
| 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 | 
|---|---|
| LongStream | SplittableRandom. longs()Returns an effectively unlimited stream of pseudorandom  longvalues from this generator and/or one split from it. | 
| LongStream | Random. longs()Returns an effectively unlimited stream of pseudorandom  longvalues. | 
| LongStream | SplittableRandom. longs(long streamSize)Returns a stream producing the given  streamSizenumber
 of pseudorandomlongvalues from this generator and/or
 one split from it. | 
| LongStream | Random. longs(long streamSize)Returns a stream producing the given  streamSizenumber of
 pseudorandomlongvalues. | 
| LongStream | SplittableRandom. longs(long randomNumberOrigin,
     long randomNumberBound)Returns an effectively unlimited stream of pseudorandom  longvalues from this generator and/or one split from it; each value
 conforms to the given origin (inclusive) and bound (exclusive). | 
| LongStream | Random. longs(long randomNumberOrigin,
     long randomNumberBound)Returns an effectively unlimited stream of pseudorandom  longvalues, each conforming to the given origin (inclusive) and bound
 (exclusive). | 
| LongStream | SplittableRandom. longs(long streamSize,
     long randomNumberOrigin,
     long randomNumberBound)Returns a stream producing the given  streamSizenumber of
 pseudorandomlongvalues from this generator and/or one split
 from it; each value conforms to the given origin (inclusive) and bound
 (exclusive). | 
| LongStream | Random. longs(long streamSize,
     long randomNumberOrigin,
     long randomNumberBound)Returns a stream producing the given  streamSizenumber of
 pseudorandomlong, each conforming to the given origin
 (inclusive) and bound (exclusive). | 
| static LongStream | Arrays. stream(long[] array)Returns a sequential  LongStreamwith the specified array as its
 source. | 
| static LongStream | Arrays. stream(long[] array,
      int startInclusive,
      int endExclusive)Returns a sequential  LongStreamwith the specified range of the
 specified array as its source. | 
| Modifier and Type | Method and Description | 
|---|---|
| LongStream | ThreadLocalRandom. longs()Returns an effectively unlimited stream of pseudorandom  longvalues. | 
| LongStream | ThreadLocalRandom. longs(long streamSize)Returns a stream producing the given  streamSizenumber of
 pseudorandomlongvalues. | 
| LongStream | ThreadLocalRandom. longs(long randomNumberOrigin,
     long randomNumberBound)Returns an effectively unlimited stream of pseudorandom  longvalues, each conforming to the given origin (inclusive) and bound
 (exclusive). | 
| LongStream | ThreadLocalRandom. longs(long streamSize,
     long randomNumberOrigin,
     long randomNumberBound)Returns a stream producing the given  streamSizenumber of
 pseudorandomlong, each conforming to the given origin
 (inclusive) and bound (exclusive). | 
| Modifier and Type | Method and Description | 
|---|---|
| LongStream | IntStream. asLongStream()Returns a  LongStreamconsisting of the elements of this stream,
 converted tolong. | 
| LongStream | LongStream.Builder. build()Builds the stream, transitioning this builder to the built state. | 
| static LongStream | LongStream. concat(LongStream a,
      LongStream 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. | 
| LongStream | LongStream. distinct()Returns a stream consisting of the distinct elements of this stream. | 
| static LongStream | LongStream. empty()Returns an empty sequential  LongStream. | 
| LongStream | LongStream. filter(LongPredicate predicate)Returns a stream consisting of the elements of this stream that match
 the given predicate. | 
| LongStream | LongStream. flatMap(LongFunction<? extends LongStream> 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. | 
| LongStream | Stream. flatMapToLong(Function<? super T,? extends LongStream> mapper)Returns an  LongStreamconsisting 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 LongStream | LongStream. generate(LongSupplier s)Returns an infinite sequential unordered stream where each element is
 generated by the provided  LongSupplier. | 
| static LongStream | LongStream. iterate(long seed,
       LongUnaryOperator f)Returns an infinite sequential ordered  LongStreamproduced by iterative
 application of a functionfto an initial elementseed,
 producing aStreamconsisting ofseed,f(seed),f(f(seed)), etc. | 
| LongStream | LongStream. limit(long maxSize)Returns a stream consisting of the elements of this stream, truncated
 to be no longer than  maxSizein length. | 
| static LongStream | StreamSupport. longStream(Spliterator.OfLong spliterator,
          boolean parallel)Creates a new sequential or parallel  LongStreamfrom aSpliterator.OfLong. | 
| static LongStream | StreamSupport. longStream(Supplier<? extends Spliterator.OfLong> supplier,
          int characteristics,
          boolean parallel)Creates a new sequential or parallel  LongStreamfrom aSupplierofSpliterator.OfLong. | 
| LongStream | LongStream. map(LongUnaryOperator mapper)Returns a stream consisting of the results of applying the given
 function to the elements of this stream. | 
| LongStream | DoubleStream. mapToLong(DoubleToLongFunction mapper)Returns a  LongStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| LongStream | IntStream. mapToLong(IntToLongFunction mapper)Returns a  LongStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| LongStream | Stream. mapToLong(ToLongFunction<? super T> mapper)Returns a  LongStreamconsisting of the results of applying the
 given function to the elements of this stream. | 
| static LongStream | LongStream. of(long... values)Returns a sequential ordered stream whose elements are the specified values. | 
| static LongStream | LongStream. of(long t)Returns a sequential  LongStreamcontaining a single element. | 
| LongStream | LongStream. parallel() | 
| LongStream | LongStream. peek(LongConsumer 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 LongStream | LongStream. range(long startInclusive,
     long endExclusive)Returns a sequential ordered  LongStreamfromstartInclusive(inclusive) toendExclusive(exclusive) by an incremental step of1. | 
| static LongStream | LongStream. rangeClosed(long startInclusive,
           long endInclusive)Returns a sequential ordered  LongStreamfromstartInclusive(inclusive) toendInclusive(inclusive) by an incremental step of1. | 
| LongStream | LongStream. sequential() | 
| LongStream | LongStream. skip(long n)Returns a stream consisting of the remaining elements of this stream
 after discarding the first  nelements of the stream. | 
| LongStream | LongStream. sorted()Returns a stream consisting of the elements of this stream in sorted
 order. | 
| Modifier and Type | Method and Description | 
|---|---|
| static LongStream | LongStream. concat(LongStream a,
      LongStream 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 | 
|---|---|
| LongStream | LongStream. flatMap(LongFunction<? extends LongStream> 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. | 
| LongStream | Stream. flatMapToLong(Function<? super T,? extends LongStream> mapper)Returns an  LongStreamconsisting 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.