| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| 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. |
static IntConsumer |
IntConsumer.Util.safe(ThrowableIntConsumer<Throwable> throwableConsumer)
Creates a safe
IntConsumer. |
static IntConsumer |
IntConsumer.Util.safe(ThrowableIntConsumer<Throwable> throwableConsumer,
IntConsumer onFailedConsumer)
Creates a safe
IntConsumer. |
| Modifier and Type | Method and Description |
|---|---|
static <T> IndexedConsumer<T> |
IndexedConsumer.Util.accept(IntConsumer c1,
Consumer<? super T> c2)
Returns an
IndexedConsumer that accepts IntConsumer
for index and Consumer for object. |
static IndexedDoubleConsumer |
IndexedDoubleConsumer.Util.accept(IntConsumer c1,
DoubleConsumer c2)
Returns an
IndexedDoubleConsumer that accepts IntConsumer
for index and DoubleConsumer for value. |
static IndexedIntConsumer |
IndexedIntConsumer.Util.accept(IntConsumer c1,
IntConsumer c2)
Returns an
IndexedIntConsumer that accepts IntConsumer
for index and IntConsumer for value. |
static IndexedLongConsumer |
IndexedLongConsumer.Util.accept(IntConsumer c1,
LongConsumer c2)
Returns an
IndexedLongConsumer that accepts IntConsumer
for index and LongConsumer for value. |
static IntConsumer |
IntConsumer.Util.andThen(IntConsumer c1,
IntConsumer c2)
Composes
IntConsumer calls. |
static IntConsumer |
IntConsumer.Util.safe(ThrowableIntConsumer<Throwable> throwableConsumer,
IntConsumer onFailedConsumer)
Creates a safe
IntConsumer. |
| Constructor and Description |
|---|
IntPeek(PrimitiveIterator.OfInt iterator,
IntConsumer action) |
Copyright © 2018. All rights reserved.