public static final class CompletableFutures.CompletableFutureKind.Box<T> extends java.lang.Object implements CompletableFutures.CompletableFutureKind<T>
CompletableFutures.CompletableFutureKind.Box<T>
Constructor and Description |
---|
Box() |
Modifier and Type | Method and Description |
---|---|
CompletableFutures.CompletableFutureKind<java.lang.Void> |
acceptEither(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Consumer<? super T> action,
java.util.concurrent.Executor executor) |
Active<Witness.completableFuture,T> |
allTypeclasses() |
<U> CompletableFutures.CompletableFutureKind<U> |
applyToEither(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other,
java.util.function.Function<? super T,U> fn,
java.util.concurrent.Executor executor) |
boolean |
equals(java.lang.Object obj) |
CompletableFutures.CompletableFutureKind<T> |
exceptionally(java.util.function.Function<java.lang.Throwable,? extends T> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn,
java.util.concurrent.Executor executor) |
int |
hashCode() |
<W2,R> Nested<Witness.completableFuture,W2,R> |
mapM(java.util.function.Function<? super T,? extends Higher<W2,R>> fn,
InstanceDefinitions<W2> defs) |
java.util.concurrent.CompletionStage<T> |
narrow() |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterBoth(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterBothAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterEither(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other,
java.lang.Runnable action,
java.util.concurrent.Executor executor) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAccept(java.util.function.Consumer<? super T> action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAcceptAsync(java.util.function.Consumer<? super T> action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAcceptAsync(java.util.function.Consumer<? super T> action,
java.util.concurrent.Executor executor) |
<U> CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action) |
<U> CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action) |
<U> CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiConsumer<? super T,? super U> action,
java.util.concurrent.Executor executor) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenApply(java.util.function.Function<? super T,? extends U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenApplyAsync(java.util.function.Function<? super T,? extends U> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenApplyAsync(java.util.function.Function<? super T,? extends U> fn,
java.util.concurrent.Executor executor) |
<U,V> CompletableFutures.CompletableFutureKind<V> |
thenCombine(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn) |
<U,V> CompletableFutures.CompletableFutureKind<V> |
thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn) |
<U,V> CompletableFutures.CompletableFutureKind<V> |
thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other,
java.util.function.BiFunction<? super T,? super U,? extends V> fn,
java.util.concurrent.Executor executor) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn) |
<U> CompletableFutures.CompletableFutureKind<U> |
thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn,
java.util.concurrent.Executor executor) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenRun(java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenRunAsync(java.lang.Runnable action) |
CompletableFutures.CompletableFutureKind<java.lang.Void> |
thenRunAsync(java.lang.Runnable action,
java.util.concurrent.Executor executor) |
java.util.concurrent.CompletableFuture<T> |
toCompletableFuture() |
java.lang.String |
toString() |
CompletableFutures.CompletableFutureKind<T> |
whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action) |
CompletableFutures.CompletableFutureKind<T> |
whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action) |
CompletableFutures.CompletableFutureKind<T> |
whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action,
java.util.concurrent.Executor executor) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
completedFuture, fromFuture, narrow, narrowFuture, narrowK, runAsync, runAsync, supplyAsync, supplyAsync, widen
public java.util.concurrent.CompletionStage<T> narrow()
public Active<Witness.completableFuture,T> allTypeclasses()
public <W2,R> Nested<Witness.completableFuture,W2,R> mapM(java.util.function.Function<? super T,? extends Higher<W2,R>> fn, InstanceDefinitions<W2> defs)
public <U> CompletableFutures.CompletableFutureKind<U> thenApply(java.util.function.Function<? super T,? extends U> fn)
thenApply
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn)
thenApplyAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> thenApplyAsync(java.util.function.Function<? super T,? extends U> fn, java.util.concurrent.Executor executor)
thenApplyAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenAccept(java.util.function.Consumer<? super T> action)
thenAccept
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action)
thenAcceptAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenAcceptAsync(java.util.function.Consumer<? super T> action, java.util.concurrent.Executor executor)
thenAcceptAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenRun(java.lang.Runnable action)
thenRun
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenRunAsync(java.lang.Runnable action)
thenRunAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> thenRunAsync(java.lang.Runnable action, java.util.concurrent.Executor executor)
thenRunAsync
in interface java.util.concurrent.CompletionStage<T>
public <U,V> CompletableFutures.CompletableFutureKind<V> thenCombine(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn)
thenCombine
in interface java.util.concurrent.CompletionStage<T>
public <U,V> CompletableFutures.CompletableFutureKind<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn)
thenCombineAsync
in interface java.util.concurrent.CompletionStage<T>
public <U,V> CompletableFutures.CompletableFutureKind<V> thenCombineAsync(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiFunction<? super T,? super U,? extends V> fn, java.util.concurrent.Executor executor)
thenCombineAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<java.lang.Void> thenAcceptBoth(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action)
thenAcceptBoth
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action)
thenAcceptBothAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<java.lang.Void> thenAcceptBothAsync(java.util.concurrent.CompletionStage<? extends U> other, java.util.function.BiConsumer<? super T,? super U> action, java.util.concurrent.Executor executor)
thenAcceptBothAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterBoth(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action)
runAfterBoth
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action)
runAfterBothAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterBothAsync(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action, java.util.concurrent.Executor executor)
runAfterBothAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> applyToEither(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn)
applyToEither
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn)
applyToEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> applyToEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Function<? super T,U> fn, java.util.concurrent.Executor executor)
applyToEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> acceptEither(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action)
acceptEither
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action)
acceptEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> acceptEitherAsync(java.util.concurrent.CompletionStage<? extends T> other, java.util.function.Consumer<? super T> action, java.util.concurrent.Executor executor)
acceptEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterEither(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action)
runAfterEither
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action)
runAfterEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<java.lang.Void> runAfterEitherAsync(java.util.concurrent.CompletionStage<?> other, java.lang.Runnable action, java.util.concurrent.Executor executor)
runAfterEitherAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> thenCompose(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn)
thenCompose
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn)
thenComposeAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> thenComposeAsync(java.util.function.Function<? super T,? extends java.util.concurrent.CompletionStage<U>> fn, java.util.concurrent.Executor executor)
thenComposeAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<T> exceptionally(java.util.function.Function<java.lang.Throwable,? extends T> fn)
exceptionally
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<T> whenComplete(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action)
whenComplete
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action)
whenCompleteAsync
in interface java.util.concurrent.CompletionStage<T>
public CompletableFutures.CompletableFutureKind<T> whenCompleteAsync(java.util.function.BiConsumer<? super T,? super java.lang.Throwable> action, java.util.concurrent.Executor executor)
whenCompleteAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> handle(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn)
handle
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn)
handleAsync
in interface java.util.concurrent.CompletionStage<T>
public <U> CompletableFutures.CompletableFutureKind<U> handleAsync(java.util.function.BiFunction<? super T,java.lang.Throwable,? extends U> fn, java.util.concurrent.Executor executor)
handleAsync
in interface java.util.concurrent.CompletionStage<T>
public java.util.concurrent.CompletableFuture<T> toCompletableFuture()
toCompletableFuture
in interface java.util.concurrent.CompletionStage<T>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object