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.Instances, 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.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() |
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, waitaccumulate, allTypeclasses, applyAny, arity, bicast, bipeek, bitrampoline, cast, coflatMap, combine, combineEager, consumeAny, either3, filterNot, flatMapI, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromFuture, fromIterable, fromLazy, fromMonadicValue, fromPublisher, kindCokleisli, kindKleisli, left1, left1Eval, left2, left2Eval, mapM, narrowK, narrowK3, nest, notNull, ofType, peek, retry, retry, right, rightEval, sequence, toIor, toTrampoline, toXor, trampoline, traverse, visitAny, visitAny, widen, zip, zip, zip, zip3, zip3, zip4, zip4, zipP, zipP, zipS, zipS, zipWith, zipWithP, zipWithSapply, generate, iterate, iterator, mkString, newSubscriber, of, stream, subscribe, test, toEither, toEval, toEvalAlways, toEvalLater, toEvalNow, toLeft, toMaybe, toMaybeEager, toRight, toTry, toTry, toTry, toXorendsWith, 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, singleUnsafe, startsWith, startsWithIterable, takeOne, xMatchcollect, fromSupplier, isPresent, orElse, orElseGet, orElseThrow, toCompletableFuture, toCompletableFutureAsync, toFuture, toFutureAsync, toOptional, toStream, visitpublic 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()
get in interface Convertable<RT>get in interface java.util.function.Supplier<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)
Either3visit 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)
Either3filter in interface Filters<RT>filter in interface MonadicValue<RT>filter in interface Either3<java.lang.Throwable,LT1,RT>test - Predicate to applyHKT to filter this Either3public <R2> Either3<java.lang.Throwable,LT1,R2> flatMap(java.util.function.Function<? super RT,? extends MonadicValue<? extends R2>> mapper)
Either3public 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