| Package | Description |
|---|---|
| com.annimon.stream |
| 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)
Have the specified consumer accept the value if a value is present,
otherwise do nothing.
|
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.
|
Copyright © 2016. All rights reserved.