public static class Eval.CompletableEval<ORG,T2> extends java.lang.Object implements Eval<T2>, Completable<ORG>
Eval.µ, Eval.CompletableEval<ORG,T2>, Eval.Instances, Eval.Module
Value.ValueImpl<T>
Convertable.SupplierToConvertable<T>
Fn0.FunctionalOperations<R>, Fn0.SupplierKind<R>
Completable.CompletablePublisher<T>
Modifier and Type | Field and Description |
---|---|
Completable.CompletablePublisher<ORG> |
complete |
Eval<T2> |
lazy |
Constructor and Description |
---|
CompletableEval() |
Modifier and Type | Method and Description |
---|---|
boolean |
complete(ORG complete) |
boolean |
completeExceptionally(java.lang.Throwable error) |
<R> Eval<R> |
flatMap(java.util.function.Function<? super T2,? extends MonadicValue<? extends R>> mapper)
A flattening transformation operation (@see
Optional.flatMap(Function) |
T2 |
get()
Apply this function to the arguments.
|
boolean |
isDone() |
boolean |
isFailed() |
<R> Eval<R> |
map(java.util.function.Function<? super T2,? extends R> mapper)
Transform this functor using the supplied transformation function
|
<T> Eval<T> |
unit(T unit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accumulate, accumulate, accumulate, always, anyM, cast, coeval, coflatMap, combine, combineEager, eval, filter, filterNot, flatMapI, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromFuture, fromIterable, fromPublisher, later, liftM, narrow, narrowK, nest, notNull, now, ofType, peek, retry, retry, sequence, sequence, steps, toMaybe, trampoline, visit, zip, zip, zip, zip3, zip3, zip4, zip4, zipP, zipP, zipS, zipS, zipWith, zipWithP, zipWithS
apply, generate, iterate, iterator, mkString, newSubscriber, of, stream, subscribe, test, toEvalAlways, toEvalLater, toEvalNow, toIor, toTry, toTry, toTry, toXor, toXor
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldLeft, foldLeft, foldLeft, foldLeft, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, xMatch
collect, fromSupplier, isPresent, orElse, orElseGet, orElseThrow, toCompletableFuture, toCompletableFutureAsync, toFuture, toFutureAsync, toOptional, toStream
public final Completable.CompletablePublisher<ORG> complete
public boolean isFailed()
isFailed
in interface Completable<ORG>
public boolean isDone()
isDone
in interface Completable<ORG>
public boolean complete(ORG complete)
complete
in interface Completable<ORG>
public boolean completeExceptionally(java.lang.Throwable error)
completeExceptionally
in interface Completable<ORG>
public <T> Eval<T> unit(T unit)
public <R> Eval<R> map(java.util.function.Function<? super T2,? extends R> mapper)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface Transformable<T2>
map
in interface MonadicValue<T2>
map
in interface Eval<T2>
mapper
- Transformation functionpublic <R> Eval<R> flatMap(java.util.function.Function<? super T2,? extends MonadicValue<? extends R>> mapper)
MonadicValue
Optional.flatMap(Function)
Eval.now(1).map(i->i+2).flatMap(i->Eval.later(()->i*3);
//Eval[9]
public T2 get()
org.jooq.lambda.function.Function0