- accept(T) - Method in interface java.util.stream.StreamBuilder
-
Accept an input value.
- accept(double) - Method in interface java.util.stream.StreamBuilder.OfDouble
-
Accept an input value.
- accept(int) - Method in interface java.util.stream.StreamBuilder.OfInt
-
Accept an input value.
- accept(long) - Method in interface java.util.stream.StreamBuilder.OfLong
-
Accept an input value.
- accumulator() - Method in interface java.util.stream.Collector
-
A function that folds a new value into a cumulative result.
- add(T) - Method in interface java.util.stream.StreamBuilder
-
Adds an element to the stream being built.
- add(double) - Method in interface java.util.stream.StreamBuilder.OfDouble
-
Adds an element to be encountered in the built stream.
- add(int) - Method in interface java.util.stream.StreamBuilder.OfInt
-
Adds an element to be encountered in the built stream.
- add(long) - Method in interface java.util.stream.StreamBuilder.OfLong
-
Adds an element to be encountered in the built stream.
- allMatch(Predicate<? super T>) - Method in class java.util.stream.DelegatingStream
-
- allMatch(DoublePredicate) - Method in interface java.util.stream.DoubleStream
-
Returns whether all elements of this stream match the provided
predicate.
- allMatch(IntPredicate) - Method in interface java.util.stream.IntStream
-
Returns whether all elements of this stream match the provided
predicate.
- allMatch(LongPredicate) - Method in interface java.util.stream.LongStream
-
Returns whether all elements of this stream match the provided
predicate.
- allMatch(Predicate<? super T>) - Method in interface java.util.stream.Stream
-
Returns whether all elements of this stream match the provided
predicate.
- anyMatch(Predicate<? super T>) - Method in class java.util.stream.DelegatingStream
-
- anyMatch(DoublePredicate) - Method in interface java.util.stream.DoubleStream
-
Returns whether any elements of this stream match the provided
predicate.
- anyMatch(IntPredicate) - Method in interface java.util.stream.IntStream
-
Returns whether any elements of this stream match the provided
predicate.
- anyMatch(LongPredicate) - Method in interface java.util.stream.LongStream
-
Returns whether any elements of this stream match the provided
predicate.
- anyMatch(Predicate<? super T>) - Method in interface java.util.stream.Stream
-
Returns whether any elements of this stream match the provided
predicate.
- average() - Method in interface java.util.stream.DoubleStream
-
Returns an OptionalDouble
describing the average of elements of this
stream, or an empty optional if this stream is empty.
- average() - Method in interface java.util.stream.IntStream
-
Returns an OptionalDouble
describing the average of elements of this
stream, or an empty optional if this stream is empty.
- average() - Method in interface java.util.stream.LongStream
-
Returns an OptionalDouble
describing the average of elements of this
stream, or an empty optional if this stream is empty.
- DelegatingStream<T> - Class in java.util.stream
-
A Stream
implementation that delegates operations to another Stream
.
- DelegatingStream(Stream<T>) - Constructor for class java.util.stream.DelegatingStream
-
Construct a Stream
that delegates operations to another Stream
.
- distinct() - Method in class java.util.stream.DelegatingStream
-
- distinct() - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the distinct elements of this stream.
- distinct() - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the distinct elements of this stream.
- distinct() - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the distinct elements of this stream.
- distinct() - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the distinct elements (according to
Object.equals(Object)
) of this stream.
- doubleBuilder() - Static method in class java.util.stream.Streams
-
Creates a DoubleStream
builder.
- doubleParallelStream(Spliterator.OfDouble) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel DoubleStream
from a Spliterator.OfDouble
.
- doubleParallelStream(Supplier<? extends Spliterator.OfDouble>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel DoubleStream
from a Supplier
of
Spliterator.OfDouble
.
- doubleRange(double, double) - Static method in class java.util.stream.Streams
-
Creates a sequential DoubleStream
from start
(inclusive)
to end
(exclusive) by an incremental or decremental step of 1.0.
- doubleRange(double, double, double) - Static method in class java.util.stream.Streams
-
Creates a sequential DoubleStream
from start
(inclusive)
to end
(exclusive) by step
.
- doubles() - Method in interface java.util.stream.IntStream
-
Returns a DoubleStream
consisting of the elements of this stream,
converted to double
.
- doubles() - Method in interface java.util.stream.LongStream
-
Returns a DoubleStream
consisting of the elements of this stream,
converted to double
.
- DoubleStream - Interface in java.util.stream
-
A sequence of primitive double elements supporting sequential and parallel
bulk operations.
- doubleStream(Spliterator.OfDouble) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential DoubleStream
from a Spliterator.OfDouble
.
- doubleStream(Supplier<? extends Spliterator.OfDouble>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential DoubleStream
from a Supplier
of
Spliterator.OfDouble
.
- filter(Predicate<? super T>) - Method in class java.util.stream.DelegatingStream
-
- filter(DoublePredicate) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the elements of this stream that match
the given predicate.
- filter(IntPredicate) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the elements of this stream that match
the given predicate.
- filter(LongPredicate) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the elements of this stream that match
the given predicate.
- filter(Predicate<? super T>) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the elements of this stream that match
the given predicate.
- findAny() - Method in class java.util.stream.DelegatingStream
-
- findAny() - Method in interface java.util.stream.DoubleStream
-
Returns an OptionalDouble
describing some element of the stream, or an
empty OptionalDouble
if the stream is empty.
- findAny() - Method in interface java.util.stream.IntStream
-
Returns an OptionalInt
describing some element of the stream, or an
empty OptionalInt
if the stream is empty.
- findAny() - Method in interface java.util.stream.LongStream
-
Returns an OptionalLong
describing some element of the stream, or an
empty OptionalLong
if the stream is empty.
- findAny() - Method in interface java.util.stream.Stream
-
Returns an Optional
describing some element of the stream, or an
empty Optional
if the stream is empty.
- findFirst() - Method in class java.util.stream.DelegatingStream
-
- findFirst() - Method in interface java.util.stream.DoubleStream
-
Returns an OptionalDouble
describing the first element of this stream
(in the encounter order), or an empty OptionalDouble
if the stream is
empty.
- findFirst() - Method in interface java.util.stream.IntStream
-
Returns an OptionalInt
describing the first element of this stream
(in the encounter order), or an empty OptionalInt
if the stream is
empty.
- findFirst() - Method in interface java.util.stream.LongStream
-
Returns an OptionalLong
describing the first element of this stream
(in the encounter order), or an empty OptionalLong
if the stream is
empty.
- findFirst() - Method in interface java.util.stream.Stream
-
Returns an Optional
describing the first element of this stream
(in the encounter order), or an empty Optional
if the stream is
empty.
- firstWinsMerger() - Static method in class java.util.stream.Collectors
-
Returns a merge function, suitable for use in
Map.merge()
or
toMap()
,
which implements a "first wins" policy.
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in class java.util.stream.DelegatingStream
-
- flatMap(DoubleFunction<? extends DoubleStream>) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the results of replacing each
element of this stream with the contents of the stream
produced by applying the provided function to each element.
- flatMap(IntFunction<? extends IntStream>) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the results of replacing each
element of this stream with the contents of the stream
produced by applying the provided function to each element.
- flatMap(LongFunction<? extends LongStream>) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the results of replacing each
element of this stream with the contents of the stream
produced by applying the provided function to each element.
- flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in interface java.util.stream.Stream
-
Produces 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.
- flatMapToDouble(Function<? super T, ? extends DoubleStream>) - Method in class java.util.stream.DelegatingStream
-
- flatMapToDouble(Function<? super T, ? extends DoubleStream>) - Method in interface java.util.stream.Stream
-
Produces a DoubleStream
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.
- flatMapToInt(Function<? super T, ? extends IntStream>) - Method in class java.util.stream.DelegatingStream
-
- flatMapToInt(Function<? super T, ? extends IntStream>) - Method in interface java.util.stream.Stream
-
Produces an IntStream
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.
- flatMapToLong(Function<? super T, ? extends LongStream>) - Method in class java.util.stream.DelegatingStream
-
- flatMapToLong(Function<? super T, ? extends LongStream>) - Method in interface java.util.stream.Stream
-
Produces 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.
- forEach(Consumer<? super T>) - Method in class java.util.stream.DelegatingStream
-
- forEach(DoubleConsumer) - Method in interface java.util.stream.DoubleStream
-
Performs an operation for each element of this stream.
- forEach(IntConsumer) - Method in interface java.util.stream.IntStream
-
Performs an action for each element of this stream.
- forEach(LongConsumer) - Method in interface java.util.stream.LongStream
-
Performs an action for each element of this stream.
- forEach(Consumer<? super T>) - Method in interface java.util.stream.Stream
-
Performs an action for each element of this stream.
- forEachOrdered(Consumer<? super T>) - Method in class java.util.stream.DelegatingStream
-
- forEachOrdered(DoubleConsumer) - Method in interface java.util.stream.DoubleStream
-
Performs an operation for each element of this stream, guaranteeing that
each element is processed in encounter order for streams that have a
defined encounter order.
- forEachOrdered(IntConsumer) - Method in interface java.util.stream.IntStream
-
Performs an operation for each element of this stream, guaranteeing that
each element is processed in encounter order for streams that have a
defined encounter order.
- forEachOrdered(LongConsumer) - Method in interface java.util.stream.LongStream
-
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.
- forEachOrdered(Consumer<? super T>) - Method in interface java.util.stream.Stream
-
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.
- generate(Supplier<T>) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential Stream
where each element is
generated by a Supplier
.
- generateDouble(DoubleSupplier) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential DoubleStream
where each element is
generated by a DoubleSupplier
.
- generateInt(IntSupplier) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential IntStream
where each element is
generated by an IntSupplier
.
- generateLong(LongSupplier) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential LongStream
where each element is
generated by a LongSupplier
.
- groupingBy(Function<? super T, ? extends K>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
implementing a "group by" operation on
input elements of type T
, grouping elements according to a
classification function.
- groupingBy(Function<? super T, ? extends K>, Collector<T, D>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
implementing a cascaded "group by" operation
on input elements of type T
, grouping elements according to a
classification function, and then performing a reduction operation on
the values associated with a given key using the specified downstream
Collector
.
- groupingBy(Function<? super T, ? extends K>, Supplier<M>, Collector<T, D>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
implementing a cascaded "group by" operation
on input elements of type T
, grouping elements according to a
classification function, and then performing a reduction operation on
the values associated with a given key using the specified downstream
Collector
.
- groupingByConcurrent(Function<? super T, ? extends K>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
implementing a concurrent "group by"
operation on input elements of type T
, grouping elements
according to a classification function.
- groupingByConcurrent(Function<? super T, ? extends K>, Collector<T, D>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
implementing a concurrent cascaded "group by"
operation on input elements of type T
, grouping elements
according to a classification function, and then performing a reduction
operation on the values associated with a given key using the specified
downstream Collector
.
- groupingByConcurrent(Function<? super T, ? extends K>, Supplier<M>, Collector<T, D>) - Static method in class java.util.stream.Collectors
-
Returns a concurrent Collector
implementing a cascaded "group by"
operation on input elements of type T
, grouping elements
according to a classification function, and then performing a reduction
operation on the values associated with a given key using the specified
downstream Collector
.
- intBuilder() - Static method in class java.util.stream.Streams
-
Creates a IntStream
builder.
- intParallelStream(Spliterator.OfInt) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel IntStream
from a Spliterator.OfInt
.
- intParallelStream(Supplier<? extends Spliterator.OfInt>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel IntStream
from a Supplier
of
Spliterator.OfInt
.
- intRange(int, int) - Static method in class java.util.stream.Streams
-
Creates a sequential IntStream
from start
(inclusive)
to end
(exclusive) by an incremental or decremental step of 1.
- intRange(int, int, int) - Static method in class java.util.stream.Streams
-
Creates a sequential IntStream
from start
(inclusive)
to end
(exclusive) by step
.
- IntStream - Interface in java.util.stream
-
A sequence of primitive integer elements supporting sequential and parallel
bulk operations.
- intStream(Spliterator.OfInt) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential IntStream
from a Spliterator.OfInt
.
- intStream(Supplier<? extends Spliterator.OfInt>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential IntStream
from a Supplier
of
Spliterator.OfInt
.
- isParallel() - Method in class java.util.stream.DelegatingStream
-
- iterate(T, UnaryOperator<T>) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential Stream
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.
- iterateDouble(double, DoubleUnaryOperator) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential DoubleStream
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.
- iterateInt(int, IntUnaryOperator) - Static method in class java.util.stream.Streams
-
Creates an infinite sequential 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.
- iterateLong(long, LongUnaryOperator) - Static method in class java.util.stream.Streams
-
Creates 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.
- iterator() - Method in class java.util.stream.DelegatingStream
-
- iterator() - Method in interface java.util.stream.DoubleStream
-
- iterator() - Method in interface java.util.stream.IntStream
-
- iterator() - Method in interface java.util.stream.LongStream
-
- lastWinsMerger() - Static method in class java.util.stream.Collectors
-
Returns a merge function, suitable for use in
Map.merge()
or
toMap()
,
which implements a "last wins" policy.
- limit(long) - Method in class java.util.stream.DelegatingStream
-
- limit(long) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the elements of this stream,
truncated to be no longer than maxSize
in length.
- limit(long) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the elements of this stream,
truncated to be no longer than maxSize
in length.
- limit(long) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the elements of this stream,
truncated to be no longer than maxSize
in length.
- limit(long) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the elements of this stream,
truncated to be no longer than maxSize
in length.
- longBuilder() - Static method in class java.util.stream.Streams
-
Creates a LongStream
builder.
- longParallelStream(Spliterator.OfLong) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel LongStream
from a Spliterator.OfLong
.
- longParallelStream(Supplier<? extends Spliterator.OfLong>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel LongStream
from a Supplier
of
Spliterator.OfLong
.
- longRange(long, long) - Static method in class java.util.stream.Streams
-
Creates a sequential LongStream
from start
(inclusive)
to end
(exclusive) by an incremental or decremental step of 1.
- longRange(long, long, long) - Static method in class java.util.stream.Streams
-
Creates a sequential LongStream
from start
(inclusive)
to end
(exclusive) by step
.
- longs() - Method in interface java.util.stream.IntStream
-
Returns a LongStream
consisting of the elements of this stream,
converted to long
.
- LongStream - Interface in java.util.stream
-
A sequence of primitive long elements supporting sequential and parallel
bulk operations.
- longStream(Spliterator.OfLong) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential LongStream
from a Spliterator.OfLong
.
- longStream(Supplier<? extends Spliterator.OfLong>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential LongStream
from a Supplier
of
Spliterator.OfLong
.
- map(Function<? super T, ? extends R>) - Method in class java.util.stream.DelegatingStream
-
- map(DoubleUnaryOperator) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the results of applying the given
function to the elements of this stream.
- map(IntUnaryOperator) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the results of applying the given
function to the elements of this stream.
- map(LongUnaryOperator) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the results of applying the given
function to the elements of this stream.
- map(Function<? super T, ? extends R>) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the results of applying the given
function to the elements of this stream.
- mapping(Function<? super T, ? extends U>, Collector<U, R>) - Static method in class java.util.stream.Collectors
-
Adapts a Collector<U,R>
to a Collector<T,R>
by applying
a mapping function to each input element before accumulation.
- mapToDouble(ToDoubleFunction<? super T>) - Method in class java.util.stream.DelegatingStream
-
- mapToDouble(IntToDoubleFunction) - Method in interface java.util.stream.IntStream
-
Produces a DoubleStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToDouble(LongToDoubleFunction) - Method in interface java.util.stream.LongStream
-
Produces a DoubleStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToDouble(ToDoubleFunction<? super T>) - Method in interface java.util.stream.Stream
-
Produces a DoubleStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToInt(ToIntFunction<? super T>) - Method in class java.util.stream.DelegatingStream
-
- mapToInt(DoubleToIntFunction) - Method in interface java.util.stream.DoubleStream
-
Produces an IntStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToInt(LongToIntFunction) - Method in interface java.util.stream.LongStream
-
Produces an IntStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToInt(ToIntFunction<? super T>) - Method in interface java.util.stream.Stream
-
Produces an IntStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToLong(ToLongFunction<? super T>) - Method in class java.util.stream.DelegatingStream
-
- mapToLong(DoubleToLongFunction) - Method in interface java.util.stream.DoubleStream
-
Produces a LongStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToLong(IntToLongFunction) - Method in interface java.util.stream.IntStream
-
Produces a LongStream
consisting of the results of applying
the given function to the elements of this stream.
- mapToLong(ToLongFunction<? super T>) - Method in interface java.util.stream.Stream
-
Produces a LongStream
consisting of the results of applying the
given function to the elements of this stream.
- mapToObj(DoubleFunction<? extends U>) - Method in interface java.util.stream.DoubleStream
-
Produces an object-valued Stream
consisting of the results of
applying the given function to the elements of this stream.
- mapToObj(IntFunction<? extends U>) - Method in interface java.util.stream.IntStream
-
Produces an object-valued Stream
consisting of the results of
applying the given function to the elements of this stream.
- mapToObj(LongFunction<? extends U>) - Method in interface java.util.stream.LongStream
-
Produces an object-valued Stream
consisting of the results of
applying the given function to the elements of this stream.
- max(Comparator<? super T>) - Method in class java.util.stream.DelegatingStream
-
- max() - Method in interface java.util.stream.DoubleStream
-
Returns an OptionalDouble
describing the maximal element of this
stream, or an empty optional if this stream is empty.
- max() - Method in interface java.util.stream.IntStream
-
Returns an OptionalInt
describing the maximal element of this
stream, or an empty optional if this stream is empty.
- max() - Method in interface java.util.stream.LongStream
-
Returns an OptionalLong
describing the maximal element of this
stream, or an empty optional if this stream is empty.
- max(Comparator<? super T>) - Method in interface java.util.stream.Stream
-
Returns the maximal element of this stream according to the provided
Comparator
.
- maxBy(Comparator<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector<T, T>
that produces the maximal element
according to a given Comparator
.
- min(Comparator<? super T>) - Method in class java.util.stream.DelegatingStream
-
- min() - Method in interface java.util.stream.DoubleStream
-
Returns an OptionalDouble
describing the minimal element of this
stream, or an empty optional if this stream is empty.
- min() - Method in interface java.util.stream.IntStream
-
Returns an OptionalInt
describing the minimal element of this
stream, or an empty optional if this stream is empty.
- min() - Method in interface java.util.stream.LongStream
-
Returns an OptionalLong
describing the minimal element of this
stream, or an empty optional if this stream is empty.
- min(Comparator<? super T>) - Method in interface java.util.stream.Stream
-
Returns the minimal element of this stream according to the provided
Comparator
.
- minBy(Comparator<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector<T, T>
that produces the minimal element
according to a given Comparator
.
- parallel() - Method in class java.util.stream.DelegatingStream
-
- parallel() - Method in interface java.util.stream.DoubleStream
-
- parallel() - Method in interface java.util.stream.IntStream
-
- parallel() - Method in interface java.util.stream.LongStream
-
- parallelStream(Spliterator<T>) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel Stream
from a Spliterator
.
- parallelStream(Supplier<? extends Spliterator<T>>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new parallel Stream
from a Supplier
of
Spliterator
.
- partitioningBy(Predicate<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
which partitions the input elements according
to a Predicate
, and organizes them into a
Map<Boolean, List<T>>
.
- partitioningBy(Predicate<? super T>, Collector<T, D>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
which partitions the input elements according
to a Predicate
, reduces the values in each partition according to
another Collector
, and organizes them into a
Map<Boolean, D>
whose values are the result of the downstream
reduction.
- peek(Consumer<? super T>) - Method in class java.util.stream.DelegatingStream
-
- peek(DoubleConsumer) - Method in interface java.util.stream.DoubleStream
-
Produces 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.
- peek(IntConsumer) - Method in interface java.util.stream.IntStream
-
Produces 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.
- peek(LongConsumer) - Method in interface java.util.stream.LongStream
-
Produces 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.
- peek(Consumer<? super T>) - Method in interface java.util.stream.Stream
-
Produces 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.
- sequential() - Method in class java.util.stream.DelegatingStream
-
- sequential() - Method in interface java.util.stream.DoubleStream
-
- sequential() - Method in interface java.util.stream.IntStream
-
- sequential() - Method in interface java.util.stream.LongStream
-
- singletonDoubleStream(double) - Static method in class java.util.stream.Streams
-
Creates a sequential DoubleStream
containing a single element.
- singletonIntStream(int) - Static method in class java.util.stream.Streams
-
Creates a sequential IntStream
containing a single element.
- singletonLongStream(long) - Static method in class java.util.stream.Streams
-
Creates a sequential LongStream
containing a single element.
- singletonStream(T) - Static method in class java.util.stream.Streams
-
Creates a sequential Stream
containing a single element.
- sorted() - Method in class java.util.stream.DelegatingStream
-
- sorted(Comparator<? super T>) - Method in class java.util.stream.DelegatingStream
-
- sorted() - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the elements of this stream in sorted
order.
- sorted() - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the elements of this stream in sorted
order.
- sorted() - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the elements of this stream in sorted
order.
- sorted() - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the elements of this stream, sorted
according to natural order.
- sorted(Comparator<? super T>) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the elements of this stream, sorted
according to the provided Comparator
.
- spliterator() - Method in class java.util.stream.DelegatingStream
-
- spliterator() - Method in interface java.util.stream.DoubleStream
-
- spliterator() - Method in interface java.util.stream.IntStream
-
- spliterator() - Method in interface java.util.stream.LongStream
-
- Stream<T> - Interface in java.util.stream
-
A sequence of elements supporting sequential and parallel bulk operations.
- stream(Spliterator<T>) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential Stream
from a Spliterator
.
- stream(Supplier<? extends Spliterator<T>>, int) - Static method in class java.util.stream.StreamSupport
-
Creates a new sequential Stream
from a Supplier
of
Spliterator
.
- StreamBuilder<T> - Interface in java.util.stream
-
A mutable builder for a Stream
.
- StreamBuilder.OfDouble - Interface in java.util.stream
-
A mutable builder for a DoubleStream
.
- StreamBuilder.OfInt - Interface in java.util.stream
-
A mutable builder for an IntStream
.
- StreamBuilder.OfLong - Interface in java.util.stream
-
A mutable builder for a LongStream
.
- Streams - Class in java.util.stream
-
Utility methods for operating on and creating streams.
- StreamSupport - Class in java.util.stream
-
Low-level utility methods for creating and manipulating streams.
- StreamSupport() - Constructor for class java.util.stream.StreamSupport
-
- substream(long) - Method in class java.util.stream.DelegatingStream
-
- substream(long, long) - Method in class java.util.stream.DelegatingStream
-
- substream(long) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the remaining elements of this stream
after discarding the first startingOffset
elements (or all
elements if the stream has fewer than startingOffset
elements).
- substream(long, long) - Method in interface java.util.stream.DoubleStream
-
Produces a stream consisting of the elements of this stream after
discarding the first startingOffset
elements (or all elements
if the stream has fewer than startingOffset
elements), and
truncating the remainder to be no longer than maxSize
in length.
- substream(long) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the remaining elements of this stream
after discarding the first startingOffset
elements (or all
elements if the stream has fewer than startingOffset
elements).
- substream(long, long) - Method in interface java.util.stream.IntStream
-
Produces a stream consisting of the elements of this stream after
discarding the first startingOffset
elements (or all elements
if the stream has fewer than startingOffset
elements), and
truncating the remainder to be no longer than maxSize
in length.
- substream(long) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the remaining elements of this stream
after discarding the first startingOffset
elements (or all
elements if the stream has fewer than startingOffset
elements).
- substream(long, long) - Method in interface java.util.stream.LongStream
-
Produces a stream consisting of the elements of this stream after
discarding the first startingOffset
elements (or all elements
if the stream has fewer than startingOffset
elements), and
truncating the remainder to be no longer than maxSize
in length.
- substream(long) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the remaining elements of this stream
after discarding the first startingOffset
elements (or all
elements if the stream has fewer than startingOffset
elements).
- substream(long, long) - Method in interface java.util.stream.Stream
-
Produces a stream consisting of the elements of this stream after
discarding the first startingOffset
elements (or all elements
if the stream has fewer than startingOffset
elements), and
truncating the remainder to be no longer than maxSize
in length.
- sum() - Method in interface java.util.stream.DoubleStream
-
Returns the sum of elements in this stream.
- sum() - Method in interface java.util.stream.IntStream
-
Returns the sum of elements in this stream.
- sum() - Method in interface java.util.stream.LongStream
-
Returns the sum of elements in this stream.
- sumBy(Function<? super T, Long>) - Static method in class java.util.stream.Collectors
-
Returns a Collector<T, Long>
that produces the sum of a
long-valued function applied to the input element.
- summaryStatistics() - Method in interface java.util.stream.DoubleStream
-
Returns a DoubleSummaryStatistics
describing various
summary data about the elements of this stream.
- summaryStatistics() - Method in interface java.util.stream.IntStream
-
Returns an IntSummaryStatistics
describing various
summary data about the elements of this stream.
- summaryStatistics() - Method in interface java.util.stream.LongStream
-
Returns a LongSummaryStatistics
describing various
summary data about the elements of this stream.
- throwingMerger() - Static method in class java.util.stream.Collectors
-
Returns a merge function, suitable for use in
Map.merge()
or
toMap()
, which always
throws
IllegalStateException
.
- toArray(IntFunction<A[]>) - Method in class java.util.stream.DelegatingStream
-
- toArray() - Method in class java.util.stream.DelegatingStream
-
- toArray() - Method in interface java.util.stream.DoubleStream
-
Produces an array containing the elements of this stream.
- toArray() - Method in interface java.util.stream.IntStream
-
Produces an array containing the elements of this stream.
- toArray() - Method in interface java.util.stream.LongStream
-
Produces an array containing the elements of this stream.
- toArray() - Method in interface java.util.stream.Stream
-
Produces an array containing the elements of this stream.
- toArray(IntFunction<A[]>) - Method in interface java.util.stream.Stream
-
Produces an array containing the elements of this stream, using the
provided generator
function to allocate the returned array.
- toCollection(Supplier<C>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
that accumulates the input elements into a
new Collection
, in encounter order.
- toConcurrentMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a ConcurrentMap
whose keys and values
are the result of applying mapping functions to the input elements.
- toConcurrentMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a ConcurrentMap
whose keys and values
are the result of applying mapping functions to the input elements.
- toConcurrentMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>, Supplier<M>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a ConcurrentMap
whose keys and values
are the result of applying mapping functions to the input elements.
- toDoubleSummaryStatistics(ToDoubleFunction<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
which applies an double
-producing
mapping function to each input element, and returns summary statistics
for the resulting values.
- toIntSummaryStatistics(ToIntFunction<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
which applies an int
-producing
mapping function to each input element, and returns summary statistics
for the resulting values.
- toList() - Static method in class java.util.stream.Collectors
-
Returns a Collector
that accumulates the input elements into a
new List
.
- toLongSummaryStatistics(ToLongFunction<? super T>) - Static method in class java.util.stream.Collectors
-
Returns a Collector
which applies an long
-producing
mapping function to each input element, and returns summary statistics
for the resulting values.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a Map
whose keys and values are the
result of applying mapping functions to the input elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a Map
whose keys and values are the
result of applying mapping functions to the input elements.
- toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, BinaryOperator<U>, Supplier<M>) - Static method in class java.util.stream.Collectors
-
Accumulate elements into a Map
whose keys and values are the
result of applying mapping functions to the input elements.
- toSet() - Static method in class java.util.stream.Collectors
-
Returns a Collector
that accumulates the input elements into a
new Set
.
- toStringBuilder() - Static method in class java.util.stream.Collectors
-
Returns a Collector
that concatenates the input elements into a
new StringBuilder
.
- toStringJoiner(String) - Static method in class java.util.stream.Collectors
-
Returns a Collector
that concatenates the input elements into a
new StringJoiner
, using the specified separator.