Spec-Zone .ru
спецификации, руководства, описания, API
|
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 |
java.util.stream
|
Modifier and Type | Method and Description |
---|---|
LongStream |
Random.longs()
Returns a stream of pseudorandom, uniformly distributed
long values from this random number generator's
sequence. |
static LongStream |
Arrays.stream(long[] array)
Returns a sequential
LongStream with the specified array as its
source. |
static LongStream |
Arrays.stream(long[] array,
int startInclusive,
int endExclusive)
Returns a sequential
LongStream with the specified range of the
specified array as its source. |
Modifier and Type | Method and Description |
---|---|
LongStream |
ThreadLocalRandom.longs() |
Modifier and Type | Method and Description |
---|---|
LongStream |
StreamBuilder.OfLong.build()
Builds the stream, transitioning this builder to the built state.
|
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 the stream produced by applying the
provided mapping function to each element.
|
LongStream |
DelegatingStream.flatMapToLong(Function<? super T,? extends LongStream> mapper) |
LongStream |
Stream.flatMapToLong(Function<? super T,? extends LongStream> mapper)
Returns a
LongStream consisting of the results of replacing each
element of this stream with the contents of the stream produced
by applying the provided mapping function to each element. |
static LongStream |
LongStream.generate(LongSupplier s)
Returns a sequential
LongStream where each element is generated
by a LongSupplier . |
static LongStream |
LongStream.iterate(long seed,
LongUnaryOperator f)
Returns an infinite sequential
LongStream 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. |
LongStream |
LongStream.limit(long maxSize)
Returns a stream consisting of the elements of this stream, truncated
to be no longer than
maxSize in length. |
static LongStream |
StreamSupport.longParallelStream(Spliterator.OfLong spliterator)
Creates a new parallel
LongStream from a Spliterator.OfLong . |
static LongStream |
StreamSupport.longParallelStream(Supplier<? extends Spliterator.OfLong> supplier,
int characteristics)
Creates a new parallel
LongStream from a Supplier of
Spliterator.OfLong . |
LongStream |
IntStream.longs()
Returns a
LongStream consisting of the elements of this stream,
converted to long . |
static LongStream |
StreamSupport.longStream(Spliterator.OfLong spliterator)
Creates a new sequential
LongStream from a Spliterator.OfLong . |
static LongStream |
StreamSupport.longStream(Supplier<? extends Spliterator.OfLong> supplier,
int characteristics)
Creates a new sequential
LongStream from a Supplier of
Spliterator.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
LongStream consisting of the results of applying the
given function to the elements of this stream. |
LongStream |
IntStream.mapToLong(IntToLongFunction mapper)
Returns a
LongStream consisting of the results of applying the
given function to the elements of this stream. |
LongStream |
DelegatingStream.mapToLong(ToLongFunction<? super T> mapper) |
LongStream |
Stream.mapToLong(ToLongFunction<? super T> mapper)
Returns a
LongStream consisting of the results of applying the
given function to the elements of this stream. |
static LongStream |
LongStream.of(long... values)
Returns a sequential stream whose elements are the specified values.
|
static LongStream |
LongStream.of(long t)
Returns a sequential
LongStream containing a single element. |
LongStream |
LongStream.parallel() |
LongStream |
LongStream.peek(LongConsumer consumer)
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
LongStream from startInclusive
(inclusive) to endExclusive (exclusive) by an incremental step of
1. |
static LongStream |
LongStream.range(long startInclusive,
long endExclusive,
long step)
Returns a sequential
LongStream from startInclusive
(inclusive) to endExclusive (exclusive) by step . |
LongStream |
LongStream.sequential() |
LongStream |
LongStream.sorted()
Returns a stream consisting of the elements of this stream in sorted
order.
|
LongStream |
LongStream.substream(long startInclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream. |
LongStream |
LongStream.substream(long startInclusive,
long endExclusive)
Returns a stream consisting of the remaining elements of this stream
after indexing
startInclusive elements into the stream and
truncated to contain no more than endExclusive - startInclusive
elements. |
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 the stream produced by applying the
provided mapping function to each element.
|
LongStream |
DelegatingStream.flatMapToLong(Function<? super T,? extends LongStream> mapper) |
LongStream |
Stream.flatMapToLong(Function<? super T,? extends LongStream> mapper)
Returns a
LongStream consisting of the results of replacing each
element of this stream with the contents of the stream produced
by applying the provided mapping function to each element. |
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, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92