public static class Either5.CompletableEither5<ORG,LT1,LT2,LT3,RT> extends java.lang.Object implements Either5<java.lang.Throwable,LT1,LT2,LT3,RT>, Completable<ORG>
Either5.CompletableEither5<ORG,LT1,LT2,LT3,RT>, Either5.Lazy<ST,M,M2,M3,PT>, Either5.Left1<ST,M,M2,M3,PT>, Either5.Left2<ST,M,M2,M3,PT>, Either5.Left3<ST,M,M2,M3,PT>, Either5.Left4<ST,M,M2,M3,PT>, Either5.Right<ST,M,M2,M3,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 |
Either5<java.lang.Throwable,LT1,LT2,LT3,RT> |
either |
Constructor and Description |
---|
CompletableEither5() |
Modifier and Type | Method and Description |
---|---|
<R1,R2> Either5<java.lang.Throwable,LT1,LT2,R1,R2> |
bimap(java.util.function.Function<? super LT3,? extends R1> fn1,
java.util.function.Function<? super RT,? extends R2> fn2)
Transform this BiTransformable, changing two value types at once.
|
boolean |
complete(ORG done) |
boolean |
completeExceptionally(java.lang.Throwable error) |
Maybe<RT> |
filter(java.util.function.Predicate<? super RT> test)
Filter this Either4 resulting in a Maybe#none if it is not a Right instance or if the predicate does not
hold.
|
<RT1> Either5<java.lang.Throwable,LT1,LT2,LT3,RT1> |
flatMap(java.util.function.Function<? super RT,? extends MonadicValue<? extends RT1>> mapper)
Flattening transformation on this Either4.
|
RT |
get()
Apply this function to the arguments.
|
boolean |
isDone() |
boolean |
isFailed() |
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isLeft3() |
boolean |
isLeft4() |
boolean |
isRight() |
<R> Either5<java.lang.Throwable,LT1,LT2,LT3,R> |
map(java.util.function.Function<? super RT,? extends R> fn)
Transform this functor using the supplied transformation function
|
Either5<RT,LT1,LT2,LT3,java.lang.Throwable> |
swap1() |
Either5<java.lang.Throwable,RT,LT2,LT3,LT1> |
swap2() |
Either5<java.lang.Throwable,LT1,RT,LT3,LT2> |
swap3() |
Either5<java.lang.Throwable,LT1,LT2,RT,LT3> |
swap4() |
<T> Either5<java.lang.Throwable,LT1,LT2,LT3,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> left2,
java.util.function.Function<? super LT2,? extends R> left3,
java.util.function.Function<? super LT3,? extends R> left4,
java.util.function.Function<? super RT,? extends R> right)
Visit the types in this Either4, 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, either4, either5, filterNot, flatMapI, flatMapP, flatMapS, foEval, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromFuture, fromIterable, fromLazy, fromMonadicValue, fromPublisher, left1, left1Eval, left2, left2Eval, left3, left3Eval, left4, left4Eval, 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 done)
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> left2, java.util.function.Function<? super LT2,? extends R> left3, java.util.function.Function<? super LT3,? extends R> left4, java.util.function.Function<? super RT,? extends R> right)
Either5
visit
in interface Either5<java.lang.Throwable,LT1,LT2,LT3,RT>
left1
- Function to execute if this Either4 is a Left1 instanceleft2
- Function to execute if this Either4 is a Left2 instanceleft3
- Function to execute if this Either4 is a Left3 instanceright
- Function to execute if this Either4 is a right instancepublic Maybe<RT> filter(java.util.function.Predicate<? super RT> test)
Either5
filter
in interface Filters<RT>
filter
in interface MonadicValue<RT>
filter
in interface Either5<java.lang.Throwable,LT1,LT2,LT3,RT>
test
- Predicate to apply to filter this Either4public <RT1> Either5<java.lang.Throwable,LT1,LT2,LT3,RT1> flatMap(java.util.function.Function<? super RT,? extends MonadicValue<? extends RT1>> mapper)
Either5
public boolean isRight()
public boolean isLeft1()
public boolean isLeft2()
public boolean isLeft3()
public boolean isLeft4()
public <R1,R2> Either5<java.lang.Throwable,LT1,LT2,R1,R2> bimap(java.util.function.Function<? super LT3,? 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]
bimap
in interface BiTransformable<LT3,RT>
bimap
in interface Either5<java.lang.Throwable,LT1,LT2,LT3,RT>
fn1
- transformation function for the first typefn2
- transformation function for the second typepublic <R> Either5<java.lang.Throwable,LT1,LT2,LT3,R> map(java.util.function.Function<? super RT,? extends R> fn)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]