T
- Data type stored within the CompletableFuturepublic static interface CompletableFutures.CompletableFutureKind<T> extends Higher<CompletableFutures.CompletableFutureKind.µ,T>, java.util.concurrent.CompletionStage<T>
Modifier and Type | Interface and Description |
---|---|
static class |
CompletableFutures.CompletableFutureKind.µ
Witness type
|
static class |
CompletableFutures.CompletableFutureKind.Box<T> |
Modifier and Type | Method and Description |
---|---|
static <T> CompletableFutures.CompletableFutureKind<T> |
completedFuture(T value)
Construct a HKT encoded completed CompletableFuture
|
static <T> CompletableFutures.CompletableFutureKind<T> |
narrow(Higher<CompletableFutures.CompletableFutureKind.µ,T> future)
Convert the raw Higher Kinded Type for CompletableFutureKind types into the CompletableFutureKind type definition class
|
static <T> java.util.concurrent.CompletableFuture<T> |
narrowK(Higher<CompletableFutures.CompletableFutureKind.µ,T> completableFuture)
Convert the HigherKindedType definition for a CompletableFuture into
|
static <T> CompletableFutures.CompletableFutureKind<T> |
widen(java.util.concurrent.CompletionStage<T> completableFuture)
Convert a CompletableFuture toNested a simulated HigherKindedType that captures CompletableFuture nature
and CompletableFuture element data type separately.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
static <T> CompletableFutures.CompletableFutureKind<T> completedFuture(T value)
value
- To encode inside a HKT encoded CompletableFuturestatic <T> CompletableFutures.CompletableFutureKind<T> widen(java.util.concurrent.CompletionStage<T> completableFuture)
CompletableFuture
- CompletableFuture toNested widen toNested a CompletableFutureKindstatic <T> CompletableFutures.CompletableFutureKind<T> narrow(Higher<CompletableFutures.CompletableFutureKind.µ,T> future)
future
- HKT encoded list into a CompletableFutureKindstatic <T> java.util.concurrent.CompletableFuture<T> narrowK(Higher<CompletableFutures.CompletableFutureKind.µ,T> completableFuture)
CompletableFuture
- Type Constructor toNested convert back into narrowed type