public static final class Either3.Lazy<ST,M,PT> extends java.lang.Object implements Either3<ST,M,PT>
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>
Constructor and Description |
---|
Lazy() |
Modifier and Type | Method and Description |
---|---|
<R1,R2> Either3<ST,R1,R2> |
bimap(java.util.function.Function<? super M,? extends R1> fn1,
java.util.function.Function<? super PT,? extends R2> fn2)
Transform this BiFunctor, changing two value types at once.
|
boolean |
equals(java.lang.Object obj) |
Maybe<PT> |
filter(java.util.function.Predicate<? super PT> test)
Filter this Either3 resulting in a Maybe#none if it is not a Right instance or if the predicate does not
hold.
|
<RT1> Either3<ST,M,RT1> |
flatMap(java.util.function.Function<? super PT,? extends MonadicValue<? extends RT1>> mapper)
Flattening transformation on this Either3.
|
PT |
get()
Apply this function to the arguments.
|
int |
hashCode() |
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isRight() |
java.util.Iterator<PT> |
iterator() |
<R> Either3<ST,M,R> |
map(java.util.function.Function<? super PT,? extends R> mapper)
Transform this functor using the supplied transformation function
|
Either3<ST,M,PT> |
resolve() |
ReactiveSeq<PT> |
stream() |
void |
subscribe(org.reactivestreams.Subscriber<? super PT> s) |
Either3<PT,M,ST> |
swap1() |
Either3<ST,PT,M> |
swap2() |
boolean |
test(PT t) |
java.lang.String |
toString() |
<T> Either3<ST,M,T> |
unit(T unit) |
<R> R |
visit(java.util.function.Function<? super PT,? extends R> present,
java.util.function.Supplier<? extends R> absent)
The provided function is executed with the value stored in this Visitable if one is present,
otherwise the provided Supplier is executed instead.
|
<R> R |
visit(java.util.function.Function<? super ST,? extends R> secondary,
java.util.function.Function<? super M,? extends R> mid,
java.util.function.Function<? super PT,? extends R> primary)
Visit the types in this Either3, only one user supplied function is executed depending on the type
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accumulate, applyAny, bicast, bipeek, bitrampoline, cast, coflatMap, combine, combineEager, consumeAny, filterNot, flatMapI, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromIterable, 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, mkString, newSubscriber, of, 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, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, xMatch
futureStream, getStreamable, isEmpty, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStream
collect, fromSupplier, isPresent, orElse, orElseGet, orElseThrow, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFuture, toFutureWAsync, toFutureWAsync, toOptional, toStream
public <R> Either3<ST,M,R> map(java.util.function.Function<? super PT,? extends R> mapper)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
public <RT1> Either3<ST,M,RT1> flatMap(java.util.function.Function<? super PT,? extends MonadicValue<? extends RT1>> mapper)
Either3
public Maybe<PT> filter(java.util.function.Predicate<? super PT> test)
Either3
filter
in interface Filters<PT>
filter
in interface MonadicValue<PT>
filter
in interface Either3<ST,M,PT>
test
- Predicate to apply to filter this Either3public PT get()
org.jooq.lambda.function.Function0
get
in interface Convertable<PT>
get
in interface java.util.function.Supplier<PT>
get
in interface org.jooq.lambda.function.Function0<PT>
public ReactiveSeq<PT> stream()
public java.util.Iterator<PT> iterator()
public <R> R visit(java.util.function.Function<? super PT,? extends R> present, java.util.function.Supplier<? extends R> absent)
Visitable
public void subscribe(org.reactivestreams.Subscriber<? super PT> s)
public boolean test(PT t)
public <R> R visit(java.util.function.Function<? super ST,? extends R> secondary, java.util.function.Function<? super M,? extends R> mid, java.util.function.Function<? super PT,? extends R> primary)
Either3
public boolean isRight()
public boolean isLeft1()
public boolean isLeft2()
public <R1,R2> Either3<ST,R1,R2> bimap(java.util.function.Function<? super M,? extends R1> fn1, java.util.function.Function<? super PT,? extends R2> fn2)
BiFunctor
MapX<String,Integer> map = MapXs.of("hello",2);
MapX<String,Integer> transformedMap = map.bimap(s->s+" world",i->i*4);
//["hello world",8]
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object