| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
OptionalDouble |
OptionalDouble.executeIfPresent(DoubleConsumer consumer)
Invokes consumer function with the value if present.
|
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,
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.
|
| Modifier and Type | Method and Description |
|---|---|
static DoubleConsumer |
DoubleConsumer.Util.andThen(DoubleConsumer c1,
DoubleConsumer c2)
Composes
DoubleConsumer calls. |
static DoubleConsumer |
DoubleConsumer.Util.safe(ThrowableDoubleConsumer<Throwable> throwableConsumer)
Creates a safe
DoubleConsumer. |
static DoubleConsumer |
DoubleConsumer.Util.safe(ThrowableDoubleConsumer<Throwable> throwableConsumer,
DoubleConsumer onFailedConsumer)
Creates a safe
DoubleConsumer. |
| Modifier and Type | Method and Description |
|---|---|
static IndexedDoubleConsumer |
IndexedDoubleConsumer.Util.accept(IntConsumer c1,
DoubleConsumer c2)
Returns an
IndexedDoubleConsumer that accepts IntConsumer
for index and DoubleConsumer for value. |
static DoubleConsumer |
DoubleConsumer.Util.andThen(DoubleConsumer c1,
DoubleConsumer c2)
Composes
DoubleConsumer calls. |
static DoubleConsumer |
DoubleConsumer.Util.safe(ThrowableDoubleConsumer<Throwable> throwableConsumer,
DoubleConsumer onFailedConsumer)
Creates a safe
DoubleConsumer. |
| Constructor and Description |
|---|
DoublePeek(PrimitiveIterator.OfDouble iterator,
DoubleConsumer action) |
Copyright © 2018. All rights reserved.