| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function |
| Modifier and Type | Method and Description |
|---|---|
OptionalInt |
OptionalInt.executeIfPresent(IntConsumer consumer)
Invokes consumer function with value if present.
|
void |
IntStream.forEach(IntConsumer action)
Performs an action for each element of this stream.
|
void |
OptionalInt.ifPresent(IntConsumer consumer)
Invokes consumer function with value if present, otherwise does nothing.
|
void |
OptionalInt.ifPresentOrElse(IntConsumer consumer,
Runnable emptyAction)
If a value is present, performs the given action with the value,
otherwise performs the empty-based action.
|
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 |
|---|---|
static IntConsumer |
IntConsumer.Util.andThen(IntConsumer c1,
IntConsumer c2)
Composes
IntConsumer calls. |
| Modifier and Type | Method and Description |
|---|---|
static IntConsumer |
IntConsumer.Util.andThen(IntConsumer c1,
IntConsumer c2)
Composes
IntConsumer calls. |
Copyright © 2017. All rights reserved.