public static class LazyEither5.Left2<ST,M,M2,M3,PT> extends java.lang.Object implements LazyEither5<ST,M,M2,M3,PT>
LazyEither5.CompletableEither5<ORG,LT1,LT2,LT3,RT>, LazyEither5.Lazy<ST,M,M2,M3,PT>, LazyEither5.Left1<ST,M,M2,M3,PT>, LazyEither5.Left2<ST,M,M2,M3,PT>, LazyEither5.Left3<ST,M,M2,M3,PT>, LazyEither5.Left4<ST,M,M2,M3,PT>, LazyEither5.Right<ST,M,M2,M3,PT>
Constructor and Description |
---|
Left2() |
Modifier and Type | Method and Description |
---|---|
<R1,R2> LazyEither5<ST,M,M2,R1,R2> |
bimap(java.util.function.Function<? super M3,? extends R1> fn1,
java.util.function.Function<? super PT,? extends R2> fn2)
Transform this BiTransformable, changing two value types at once.
|
boolean |
equals(java.lang.Object obj) |
Maybe<PT> |
filter(java.util.function.Predicate<? super PT> test)
Filter this Either4 resulting in a Maybe#none if it is not a Right instance or if the predicate does not
hold.
|
<RT1> LazyEither5<ST,M,M2,M3,RT1> |
flatMap(java.util.function.Function<? super PT,? extends LazyEither5<ST,M,M2,M3,? extends RT1>> mapper)
Flattening transformation on this Either4.
|
<R> R |
fold(java.util.function.Function<? super PT,? extends R> present,
java.util.function.Supplier<? extends R> absent) |
<R> R |
fold(java.util.function.Function<? super ST,? extends R> secondary,
java.util.function.Function<? super M,? extends R> mid1,
java.util.function.Function<? super M2,? extends R> mid2,
java.util.function.Function<? super M3,? extends R> mid3,
java.util.function.Function<? super PT,? extends R> primary) |
Option<PT> |
get() |
int |
hashCode() |
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isLeft3() |
boolean |
isLeft4() |
boolean |
isRight() |
java.util.Iterator<PT> |
iterator() |
<R> LazyEither5<ST,M,M2,M3,R> |
map(java.util.function.Function<? super PT,? extends R> fn)
Transform this functor using the supplied transformation function
|
java.lang.String |
mkString()
Returns the class name and the name of the subclass, if there is any value, the value is showed between square brackets.
|
LazyEither5<ST,M,M2,M3,PT> |
peek(java.util.function.Consumer<? super PT> action)
Peek at the current value of this Transformable, without transforming it
|
ReactiveSeq<PT> |
stream() |
void |
subscribe(org.reactivestreams.Subscriber<? super PT> s) |
LazyEither5<PT,M,M2,M3,ST> |
swap1() |
LazyEither5<ST,PT,M2,M3,M> |
swap2() |
LazyEither5<ST,M,PT,M3,M2> |
swap3() |
LazyEither5<ST,M,M2,PT,M3> |
swap4() |
java.lang.String |
toString() |
<T> LazyEither5<ST,M,M2,M3,T> |
unit(T unit) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accumulate, always, applyAny, bipeek, coflatMap, consumeAny, either4, either5, filter, filterNot, foEval, foldAny, forEach2, forEach3, forEach4, fromFuture, fromIterable, fromLazy, fromPublisher, later, left1, left1Eval, left2, left2Eval, left3, left3Eval, left4, left4Eval, nest, notNull, ofType, right, rightEval, sequence, sequence, toEither, toIor, toTrampoline, traverse, traverse, visitAny, visitAny, zip
orElseUse, orElseUse
asSupplier, collect, fold, forEach, generate, isPresent, iterate, nonEmptyList, nonEmptyListGet, orElse, orElseGet, print, print, printErr, printOut, toEither, toLazyEither, toLeft, toMaybe, toOption, toOptional, toRight, toTry, toTry, toTry
public <R> LazyEither5<ST,M,M2,M3,R> map(java.util.function.Function<? super PT,? extends R> fn)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface Transformable<PT>
map
in interface LazyEither5<ST,M,M2,M3,PT>
fn
- Transformation functionpublic LazyEither5<ST,M,M2,M3,PT> peek(java.util.function.Consumer<? super PT> action)
Transformable
of(1,2,3).map(System.out::println)
1
2
3
peek
in interface Transformable<PT>
peek
in interface LazyEither5<ST,M,M2,M3,PT>
action
- Consumer that recieves each element from this Transformablepublic Maybe<PT> filter(java.util.function.Predicate<? super PT> test)
LazyEither5
public <RT1> LazyEither5<ST,M,M2,M3,RT1> flatMap(java.util.function.Function<? super PT,? extends LazyEither5<ST,M,M2,M3,? extends RT1>> mapper)
LazyEither5
public boolean isRight()
public boolean isLeft1()
public boolean isLeft4()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String mkString()
Value
public <R> R fold(java.util.function.Function<? super ST,? extends R> secondary, java.util.function.Function<? super M,? extends R> mid1, java.util.function.Function<? super M2,? extends R> mid2, java.util.function.Function<? super M3,? extends R> mid3, java.util.function.Function<? super PT,? extends R> primary)
public <R1,R2> LazyEither5<ST,M,M2,R1,R2> bimap(java.util.function.Function<? super M3,? extends R1> fn1, java.util.function.Function<? super PT,? 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 ReactiveSeq<PT> stream()
public java.util.Iterator<PT> iterator()
public <R> R fold(java.util.function.Function<? super PT,? extends R> present, java.util.function.Supplier<? extends R> absent)
public void subscribe(org.reactivestreams.Subscriber<? super PT> s)
public <T> LazyEither5<ST,M,M2,M3,T> unit(T unit)
public boolean isLeft2()
public boolean isLeft3()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object