public static final class Either5.Lazy<ST,M,M2,M3,PT> extends java.lang.Object implements Either5<ST,M,M2,M3,PT>
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>
com.aol.cyclops.types.applicative.ApplicativeFunctor.Applicatives, com.aol.cyclops.types.applicative.ApplicativeFunctor.ApplyFunctions<T>
Constructor and Description |
---|
Lazy() |
Modifier and Type | Method and Description |
---|---|
<R1,R2> Either5<ST,M,M2,R1,R2> |
bimap(java.util.function.Function<? super M3,? extends R1> fn1,
java.util.function.Function<? super PT,? extends R2> fn2) |
boolean |
equals(java.lang.Object obj) |
com.aol.cyclops.control.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> Either5<ST,M,M2,M3,RT1> |
flatMap(java.util.function.Function<? super PT,? extends com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
Flattening transformation on this Either4.
|
PT |
get() |
int |
hashCode() |
boolean |
isLeft1() |
boolean |
isLeft2() |
boolean |
isLeft3() |
boolean |
isLeft4() |
boolean |
isRight() |
java.util.Iterator<PT> |
iterator() |
<R> Either5<ST,M,M2,M3,R> |
map(java.util.function.Function<? super PT,? extends R> mapper) |
Either5<ST,M,M2,M3,PT> |
resolve() |
com.aol.cyclops.control.ReactiveSeq<PT> |
stream() |
void |
subscribe(org.reactivestreams.Subscriber<? super PT> s) |
Either5<PT,M,M2,M3,ST> |
swap1() |
Either5<ST,PT,M2,M3,M> |
swap2() |
Either5<ST,M,PT,M3,M2> |
swap3() |
Either5<ST,M,M2,PT,M3> |
swap4() |
boolean |
test(PT t) |
java.lang.String |
toString() |
<T> Either5<ST,M,M2,M3,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> first,
java.util.function.Function<? super M,? extends R> second,
java.util.function.Function<? super M2,? extends R> third,
java.util.function.Function<? super M3,? extends R> fourth,
java.util.function.Function<? super PT,? extends R> primary)
Visit the types in this Either4, 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, combine, combineEager, consumeAny, filterNot, flatMapIterable, flatMapPublisher, foEval, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromIterable, fromMonadicValue, fromPublisher, left1, left1Eval, left2, left2Eval, left3, left3Eval, left4, left4Eval, nest, notNull, ofType, patternMatch, peek, right, rightEval, sequence, toIor, toXor, trampoline, traverse, visitAny, visitAny, zip, zip, zip, zip, zip, zip, zip
applyFunctions
collect, fold, fold, generate, iterate, mapReduce, mkString, 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 <R> Either5<ST,M,M2,M3,R> map(java.util.function.Function<? super PT,? extends R> mapper)
public <RT1> Either5<ST,M,M2,M3,RT1> flatMap(java.util.function.Function<? super PT,? extends com.aol.cyclops.types.MonadicValue<? extends RT1>> mapper)
Either5
public com.aol.cyclops.control.Maybe<PT> filter(java.util.function.Predicate<? super PT> test)
Either5
filter
in interface Either5<ST,M,M2,M3,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 Either4public PT get()
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 <R> R visit(java.util.function.Function<? super ST,? extends R> first, java.util.function.Function<? super M,? extends R> second, java.util.function.Function<? super M2,? extends R> third, java.util.function.Function<? super M3,? extends R> fourth, java.util.function.Function<? super PT,? extends R> primary)
Either5
visit
in interface Either5<ST,M,M2,M3,PT>
first
- Function to execute if this Either4 is a Left1 instancesecond
- Function to execute if this Either4 is a Left2 instancethird
- Function to execute if this Either4 is a Left3 instanceprimary
- Function to execute if this Either4 is a right instancepublic boolean isRight()
public boolean isLeft1()
public boolean isLeft2()
public boolean isLeft3()
public boolean isLeft4()
public <R1,R2> Either5<ST,M,M2,R1,R2> bimap(java.util.function.Function<? super M3,? extends R1> fn1, java.util.function.Function<? super PT,? extends R2> fn2)
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