public static class Either3.Left2<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>
com.aol.cyclops.types.applicative.ApplicativeFunctor.Applicatives, com.aol.cyclops.types.applicative.ApplicativeFunctor.ApplyFunctions<T>
Constructor and Description |
---|
Left2() |
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) |
<T2,R> Either3<ST,M,R> |
combine(com.aol.cyclops.types.Value<? extends T2> app,
java.util.function.BiFunction<? super PT,? super T2,? extends R> fn) |
boolean |
equals(java.lang.Object obj) |
com.aol.cyclops.control.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 com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
Flattening transformation on this Either3.
|
PT |
get() |
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> fn) |
java.lang.String |
mkString() |
Either3<ST,M,PT> |
peek(java.util.function.Consumer<? super PT> action) |
com.aol.cyclops.control.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) |
<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, anyM, anyMList, applyAny, bicast, bipeek, bitrampoline, cast, coflatMap, combine, combineEager, consumeAny, filterNot, flatMapIterable, flatMapPublisher, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromIterable, fromMonadicValue, fromPublisher, left1, left1Eval, left2, left2Eval, nest, notNull, ofType, patternMatch, right, rightEval, sequence, toIor, toXor, trampoline, traverse, visitAny, visitAny, zip, zip, zip, zip, zip, zip, zip
applyFunctions
collect, fold, fold, generate, iterate, mapReduce, newSubscriber, of, toDequeX, toEvalAlways, toEvalLater, toEvalNow, toFeatureToggle, toFutureStream, toFutureStream, toLazyImmutable, toList, toListX, toMaybe, toMutable, toPBagX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toTry, toTry, toTry, toXor, unapply
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldable, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, xMatch
collect, fromSupplier, isPresent, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toFutureWAsync, toFutureWAsync, toOptional, toOptionalAtomicReference, toStream
public com.aol.cyclops.control.Maybe<PT> filter(java.util.function.Predicate<? super PT> test)
Either3
filter
in interface Either3<ST,M,PT>
filter
in interface com.aol.cyclops.types.Filterable<PT>
filter
in interface com.aol.cyclops.types.MonadicValue<PT>
test
- Predicate to apply to filter this Either3public PT get()
public <RT1> Either3<ST,M,RT1> flatMap(java.util.function.Function<? super PT,? extends com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
Either3
public boolean isRight()
public boolean isLeft1()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String mkString()
mkString
in interface com.aol.cyclops.types.Value<PT>
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 <T2,R> Either3<ST,M,R> combine(com.aol.cyclops.types.Value<? extends T2> app, java.util.function.BiFunction<? super PT,? super T2,? extends R> fn)
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)
public com.aol.cyclops.control.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)
public void subscribe(org.reactivestreams.Subscriber<? super PT> s)
public boolean test(PT t)
public boolean isLeft2()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object