T
- Data type stored within the CompletableFuturepublic interface CompletableFutureKind<T> extends Higher<CompletableFutureKind.µ,T>, java.util.concurrent.CompletionStage<T>
Modifier and Type | Interface and Description |
---|---|
static class |
CompletableFutureKind.µ
Witness type
|
static class |
CompletableFutureKind.Box<T> |
Modifier and Type | Method and Description |
---|---|
static <T> CompletableFutureKind<T> |
completedFuture(T value)
Construct a HKT encoded completed CompletableFuture
|
static <T> CompletableFutureKind<T> |
narrow(Higher<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<CompletableFutureKind.µ,T> completableFuture)
Convert the HigherKindedType definition for a CompletableFuture into
|
static <T> CompletableFutureKind<T> |
widen(java.util.concurrent.CompletionStage<T> completableFuture)
Convert a CompletableFuture to 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> CompletableFutureKind<T> completedFuture(T value)
value
- To encode inside a HKT encoded CompletableFuturestatic <T> CompletableFutureKind<T> widen(java.util.concurrent.CompletionStage<T> completableFuture)
CompletableFuture
- CompletableFuture to widen to a CompletableFutureKindstatic <T> CompletableFutureKind<T> narrow(Higher<CompletableFutureKind.µ,T> future)
future
- HKT encoded list into a CompletableFutureKindstatic <T> java.util.concurrent.CompletableFuture<T> narrowK(Higher<CompletableFutureKind.µ,T> completableFuture)
CompletableFuture
- Type Constructor to convert back into narrowed type