Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
void |
DoubleStream.forEach(DoubleConsumer action)
Performs an action for each element of this stream.
|
void |
OptionalDouble.ifPresent(DoubleConsumer consumer)
Invokes consumer function with value if present, otherwise does nothing.
|
void |
OptionalDouble.ifPresentOrElse(DoubleConsumer consumer,
java.lang.Runnable emptyAction)
If a value is present, performs the given action with the value,
otherwise performs the empty-based action.
|
DoubleStream |
DoubleStream.peek(DoubleConsumer action)
Performs provided action on each element.
|