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