Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
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,
java.lang.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.
|