| 程序包 | 说明 |
|---|---|
| org.skfiy.util.v8 |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Void> |
CompletableFuture.acceptEither(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is completed after
performing the given action with the result of either this or the other
given CompletableFuture's result, when either complete.
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool(), performing the given action
with the result of either this or the other given CompletableFuture's
result, when either complete. |
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor, performing the given action with the result of
either this or the other given CompletableFuture's result, when either
complete.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEither(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of either this or the other given
CompletableFuture's results when either complete.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() with the result of the given
function of either this or the other given CompletableFuture's results
when either complete. |
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor with the result of the given function of either
this or the other given CompletableFuture's results when either complete.
|
CompletableFuture<T> |
CompletableFuture.exceptionally(CompletableFuture.Fun<Throwable,? extends T> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of the exception triggering this
CompletableFuture's completion when it completes exceptionally;
Otherwise, if this CompletableFuture completes normally, then the
returned CompletableFuture also completes normally with the same value.
|
<U> CompletableFuture<U> |
CompletableFuture.handle(CompletableFuture.BiFun<? super T,Throwable,? extends U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of the result and exception of this
CompletableFuture's completion when it completes.
|
CompletableFuture<Void> |
CompletableFuture.runAfterBoth(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed when this and
the other given CompletableFuture both complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() when this and the other given
CompletableFuture both complete. |
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor when this and the other given CompletableFuture
both complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterEither(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed after this or
the other given CompletableFuture complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() after this or the other given
CompletableFuture complete. |
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor after this or the other given CompletableFuture
complete.
|
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable)
Asynchronously executes in the
ForkJoinPool.commonPool() a task that runs the given action, and then
completes the returned CompletableFuture. |
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable,
Executor executor)
Asynchronously executes using the given executor, a task that runs the
given action, and then completes the returned CompletableFuture.
|
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(CompletableFuture.Generator<U> supplier)
Asynchronously executes in the
ForkJoinPool.commonPool(), a task that completes the returned
CompletableFuture with the result of the given Supplier. |
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(CompletableFuture.Generator<U> supplier,
Executor executor)
Asynchronously executes using the given executor, a task that completes
the returned CompletableFuture with the result of the given Supplier.
|
CompletableFuture<Void> |
CompletableFuture.thenAccept(CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is completed after
performing the given action with this CompletableFuture's result when it
completes.
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with this CompletableFuture's
result when it completes. |
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(CompletableFuture.Action<? super T> block,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor with this CompletableFuture's result when it
completes.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block)
Creates and returns a CompletableFuture that is completed with the
results of this and the other given CompletableFuture if both complete.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() with the results of this and
the other given CompletableFuture when both complete. |
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor with the results of this and the other given
CompletableFuture when both complete.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApply(CompletableFuture.Fun<? super T,? extends U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of this CompletableFuture.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(CompletableFuture.Fun<? super T,? extends U> fn)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with the result of the given
function of this CompletableFuture. |
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(CompletableFuture.Fun<? super T,? extends U> fn,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor with the result of the given function of this
CompletableFuture.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombine(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of this and the other given CompletableFuture's
results when both complete.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with the result of the given
function of this and the other given CompletableFuture's results when
both complete. |
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor with the result of the given function of this
and the other given CompletableFuture's results when both complete.
|
<U> CompletableFuture<U> |
CompletableFuture.thenCompose(CompletableFuture.Fun<? super T,CompletableFuture<U>> fn)
Returns a CompletableFuture (or an equivalent one) produced by the given
function of the result of this CompletableFuture when completed.
|
CompletableFuture<Void> |
CompletableFuture.thenRun(Runnable action)
Creates and returns a CompletableFuture that is completed after
performing the given action when this CompletableFuture completes.
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() after performing the given
action when this CompletableFuture completes. |
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor after performing the given action when this
CompletableFuture completes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Void> |
CompletableFuture.acceptEither(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is completed after
performing the given action with the result of either this or the other
given CompletableFuture's result, when either complete.
|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool(), performing the given action
with the result of either this or the other given CompletableFuture's
result, when either complete. |
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Action<? super T> block,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor, performing the given action with the result of
either this or the other given CompletableFuture's result, when either
complete.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEither(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of either this or the other given
CompletableFuture's results when either complete.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() with the result of the given
function of either this or the other given CompletableFuture's results
when either complete. |
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor with the result of the given function of either
this or the other given CompletableFuture's results when either complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterBoth(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed when this and
the other given CompletableFuture both complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() when this and the other given
CompletableFuture both complete. |
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor when this and the other given CompletableFuture
both complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterEither(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed after this or
the other given CompletableFuture complete.
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletableFuture<?> other,
Runnable action)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() after this or the other given
CompletableFuture complete. |
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor after this or the other given CompletableFuture
complete.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBoth(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block)
Creates and returns a CompletableFuture that is completed with the
results of this and the other given CompletableFuture if both complete.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() with the results of this and
the other given CompletableFuture when both complete. |
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiAction<? super T,? super U> block,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor with the results of this and the other given
CompletableFuture when both complete.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombine(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of this and the other given CompletableFuture's
results when both complete.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with the result of the given
function of this and the other given CompletableFuture's results when
both complete. |
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor with the result of the given function of this
and the other given CompletableFuture's results when both complete.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletableFuture<U> |
CompletableFuture.thenCompose(CompletableFuture.Fun<? super T,CompletableFuture<U>> fn)
Returns a CompletableFuture (or an equivalent one) produced by the given
function of the result of this CompletableFuture when completed.
|
Copyright © 2013 The Skfiy Open Association. All Rights Reserved.