public class ScalarDelegate<E> extends Object implements Scalar<E>
| Constructor and Description |
|---|
ScalarDelegate(Scalar<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
E |
call() |
void |
consume(Consumer<? super E> action)
Consume the result with the given
Consumer. |
CompletableFuture<E> |
toCompletableFuture() |
CompletableFuture<E> |
toCompletableFuture(Executor executor) |
Supplier<E> |
toSupplier() |
E |
value() |
public E value()
public void consume(Consumer<? super E> action)
ScalarConsumer.public CompletableFuture<E> toCompletableFuture()
toCompletableFuture in interface Scalar<E>CompletableFuture computing the result.public CompletableFuture<E> toCompletableFuture(Executor executor)
toCompletableFuture in interface Scalar<E>executor - to perform the operationCompletableFuture computing the result.