Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations of
static and default interface methods added in Java 8 and, in addition, the
JEP 269: Convenience Factory
Methods for Collections that were introduced in Java 9. |
java8.util.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java8.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Class and Description |
---|---|
class |
IntSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and
average.
|
class |
LongSummaryStatistics
A state object for collecting statistics such as count, min, max, sum, and
average.
|
Modifier and Type | Method and Description |
---|---|
void |
PrimitiveIterator.OfInt.forEachRemaining(IntConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
void |
Spliterator.OfInt.forEachRemaining(IntConsumer action) |
void |
Spliterators.AbstractIntSpliterator.forEachRemaining(IntConsumer action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the
action throws an exception.
|
static void |
Iterators.forEachRemaining(PrimitiveIterator.OfInt it,
IntConsumer action)
Performs the given action for each remaining element until all elements
have been processed or the action throws an exception.
|
static void |
Spliterators.OfInt.forEachRemaining(Spliterator.OfInt this_,
IntConsumer action)
Performs the given action for each remaining element of the passed Spliterator,
sequentially in the current thread, until all elements have been processed or
the action throws an exception.
|
void |
OptionalInt.ifPresent(IntConsumer action)
If a value is present, performs the given action with the value,
otherwise does nothing.
|
void |
OptionalInt.ifPresentOrElse(IntConsumer action,
Runnable emptyAction)
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
|
boolean |
Spliterator.OfInt.tryAdvance(IntConsumer action) |
Modifier and Type | Method and Description |
---|---|
static IntConsumer |
IntConsumers.andThen(IntConsumer this_,
IntConsumer after)
Returns a composed
IntConsumer that performs, in sequence, the this_
operation followed by the after operation. |
Modifier and Type | Method and Description |
---|---|
static IntConsumer |
IntConsumers.andThen(IntConsumer this_,
IntConsumer after)
Returns a composed
IntConsumer that performs, in sequence, the this_
operation followed by the after operation. |
Modifier and Type | Interface and Description |
---|---|
static interface |
IntStream.Builder
A mutable builder for an
IntStream . |
Modifier and Type | Method and Description |
---|---|
void |
IntStream.IntMapMultiConsumer.accept(int value,
IntConsumer ic)
Replaces the given
value with zero or more values by feeding the mapped
values to the ic consumer. |
void |
IntStream.forEach(IntConsumer action)
Performs an action for each element of this stream.
|
void |
IntStream.forEachOrdered(IntConsumer action)
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
IntStream |
Stream.mapMultiToInt(BiConsumer<? super T,? super IntConsumer> mapper)
Returns an
IntStream consisting of the results of replacing each
element of this stream with multiple elements, specifically zero or more
elements. |
Copyright © 2021. All rights reserved.