public static class Either3.CompletableEither3<ORG,LT1,RT> extends java.lang.Object implements Either3<java.lang.Throwable,LT1,RT>, Completable<ORG>
Either3.CompletableEither3<ORG,LT1,RT>, Either3.Lazy<ST,M,PT>, Either3.Left1<ST,M,PT>, Either3.Left2<ST,M,PT>, Either3.Right<ST,M,PT>
Value.ValueImpl<T>
Convertable.SupplierToConvertable<T>
Fn0.FunctionalOperations<R>, Fn0.Instances, Fn0.SupplierKind<R>
Completable.CompletablePublisher<T>
Modifier and Type | Field and Description |
---|---|
Completable.CompletablePublisher<ORG> |
complete |
Either3<java.lang.Throwable,LT1,RT> |
either |
Constructor and Description |
---|
CompletableEither3() |
Modifier and Type | Method and Description |
---|---|
<R1,R2> Either3<java.lang.Throwable,R1,R2> |
bimap(java.util.function.Function<? super LT1,? extends R1> fn1,
java.util.function.Function<? super RT,? extends R2> fn2)
Transform this BiTransformable, changing two value types at once.
|
boolean |
complete(ORG v) |
boolean |
completeExceptionally(java.lang.Throwable error) |
Maybe<RT> |
filter(java.util.function.Predicate<? super RT> test)
Filter this Either3 resulting in a Maybe#none if it is not a Right instance or if the predicate does not
hold.
|
<R2> Either3<java.lang.Throwable,LT1,R2> |
flatMap(java.util.function.Function<? super RT,? extends MonadicValue<? extends R2>> mapper)
Flattening transformation on this Either3.
|
RT |
get()
Apply this function to the arguments.
|
boolean |
isDone() |
boolean |
isFailed() |
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isRight() |
<R> Either3<java.lang.Throwable,LT1,R> |
map(java.util.function.Function<? super RT,? extends R> fn)
Transform this functor using the supplied transformation function
|
Either3<RT,LT1,java.lang.Throwable> |
swap1() |
Either3<java.lang.Throwable,RT,LT1> |
swap2() |
<T> Either3<java.lang.Throwable,LT1,T> |
unit(T unit) |
<R> R |
visit(java.util.function.Function<? super java.lang.Throwable,? extends R> left1,
java.util.function.Function<? super LT1,? extends R> mid,
java.util.function.Function<? super RT,? extends R> right)
Visit the types in this Either3, only one user supplied function is executed depending on the type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accumulate, applyAny, bicast, bipeek, bitrampoline, cast, coflatMap, combine, combineEager, consumeAny, either3, filterNot, flatMapI, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromFuture, fromIterable, fromLazy, fromMonadicValue, fromPublisher, left1, left1Eval, left2, left2Eval, nest, notNull, ofType, peek, retry, retry, right, rightEval, sequence, toIor, toXor, trampoline, traverse, visitAny, visitAny, 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, toMaybe, toTry, toTry, toTry, 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, visit
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 v)
complete
in interface Completable<ORG>
public boolean completeExceptionally(java.lang.Throwable error)
completeExceptionally
in interface Completable<ORG>
public RT get()
org.jooq.lambda.function.Function0
get
in interface Convertable<RT>
get
in interface java.util.function.Supplier<RT>
get
in interface org.jooq.lambda.function.Function0<RT>
public <R> R visit(java.util.function.Function<? super java.lang.Throwable,? extends R> left1, java.util.function.Function<? super LT1,? extends R> mid, java.util.function.Function<? super RT,? extends R> right)
Either3
visit
in interface Either3<java.lang.Throwable,LT1,RT>
left1
- Function to execute if this Either3 is a Left instancemid
- Function to execute if this Either3 is a middle instanceright
- Function to execute if this Either3 is a right instancepublic Maybe<RT> filter(java.util.function.Predicate<? super RT> test)
Either3
filter
in interface Filters<RT>
filter
in interface MonadicValue<RT>
filter
in interface Either3<java.lang.Throwable,LT1,RT>
test
- Predicate to apply to filter this Either3public <R2> Either3<java.lang.Throwable,LT1,R2> flatMap(java.util.function.Function<? super RT,? extends MonadicValue<? extends R2>> mapper)
Either3
public boolean isRight()
public boolean isLeft1()
public boolean isLeft2()
public <R1,R2> Either3<java.lang.Throwable,R1,R2> bimap(java.util.function.Function<? super LT1,? extends R1> fn1, java.util.function.Function<? super RT,? extends R2> fn2)
BiTransformable
MapX<String,Integer> map = MapXs.of("hello",2);
MapX<String,Integer> transformedMap = map.bimap(s->s+" world",i->i*4);
//["hello world",8]
public <R> Either3<java.lang.Throwable,LT1,R> map(java.util.function.Function<? super RT,? extends R> fn)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface Transformable<RT>
map
in interface MonadicValue<RT>
map
in interface Either3<java.lang.Throwable,LT1,RT>
fn
- Transformation function