Modifier | Constructor and Description |
---|---|
protected |
BaseScalar(Executor executor) |
Modifier and Type | Method and Description |
---|---|
E |
call() |
void |
consume(Consumer<? super E> action)
Consume the result with the given
Consumer . |
protected abstract E |
evaluate() |
CompletableFuture<E> |
toCompletableFuture() |
CompletableFuture<E> |
toCompletableFuture(Executor executor) |
Supplier<E> |
toSupplier() |
E |
value() |
protected BaseScalar(Executor executor)
protected abstract E evaluate()
public E value()
public void consume(Consumer<? super E> action)
Scalar
Consumer
.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.