public static final class XorType.Box<ST,PT> extends java.lang.Object implements XorType<ST,PT>
XorType.µ, XorType.Box<ST,PT>
com.aol.cyclops.control.Xor.Primary<ST,PT>, com.aol.cyclops.control.Xor.Secondary<ST,PT>
com.aol.cyclops.types.applicative.ApplicativeFunctor.Applicatives, com.aol.cyclops.types.applicative.ApplicativeFunctor.ApplyFunctions<T>
Constructor and Description |
---|
Box() |
Modifier and Type | Method and Description |
---|---|
<T2,R> com.aol.cyclops.control.Xor<ST,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.Xor<ST,PT> |
filter(java.util.function.Predicate<? super PT> test) |
<LT1,RT1> com.aol.cyclops.control.Xor<LT1,RT1> |
flatMap(java.util.function.Function<? super PT,? extends com.aol.cyclops.types.MonadicValue2<? extends LT1,? extends RT1>> mapper) |
PT |
get() |
int |
hashCode() |
boolean |
isPresent() |
boolean |
isPrimary() |
boolean |
isSecondary() |
<R> com.aol.cyclops.control.Xor<ST,R> |
map(java.util.function.Function<? super PT,? extends R> fn) |
<R> com.aol.cyclops.control.Eval<R> |
matches(java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<ST,R>,com.aol.cyclops.control.Matchable.CheckValue1<ST,R>> fn1,
java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<PT,R>,com.aol.cyclops.control.Matchable.CheckValue1<PT,R>> fn2,
java.util.function.Supplier<? extends R> otherwise) |
com.aol.cyclops.control.Xor<ST,PT> |
narrow() |
com.aol.cyclops.control.Xor<ST,PT> |
peek(java.util.function.Consumer<? super PT> action) |
void |
peek(java.util.function.Consumer<? super ST> stAction,
java.util.function.Consumer<? super PT> ptAction) |
<LT1,RT1> com.aol.cyclops.control.Xor<LT1,RT1> |
secondaryFlatMap(java.util.function.Function<? super ST,? extends com.aol.cyclops.control.Xor<LT1,RT1>> mapper) |
ST |
secondaryGet() |
<R> com.aol.cyclops.control.Xor<R,PT> |
secondaryMap(java.util.function.Function<? super ST,? extends R> fn) |
com.aol.cyclops.control.Xor<ST,PT> |
secondaryPeek(java.util.function.Consumer<? super ST> action) |
java.util.Optional<ST> |
secondaryToOptional() |
com.aol.cyclops.control.Xor<ST,PT> |
secondaryToPrimayFlatMap(java.util.function.Function<? super ST,? extends com.aol.cyclops.control.Xor<ST,PT>> fn) |
com.aol.cyclops.control.Xor<ST,PT> |
secondaryToPrimayMap(java.util.function.Function<? super ST,? extends PT> fn) |
com.aol.cyclops.control.ReactiveSeq<ST> |
secondaryToStream() |
com.aol.cyclops.types.Value<ST> |
secondaryValue() |
com.aol.cyclops.control.Xor<PT,ST> |
swap() |
com.aol.cyclops.control.Ior<ST,PT> |
toIor() |
java.lang.String |
toString() |
<R> R |
visit(java.util.function.Function<? super ST,? extends R> secondary,
java.util.function.Function<? super PT,? extends R> primary) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
narrow, narrowK, primary, secondary, widen, widen2
accumulatePrimary, accumulatePrimary, accumulatePrimary, accumulateSecondary, accumulateSecondary, accumulateSecondary, anyM, bicast, bimap, bipeek, bitrampoline, cast, coflatMap, combine, combine, combineEager, combineToList, filterNot, flatMapIterable, flatMapPublisher, fromIterable, fromPublisher, list, mapBoth, nest, notNull, ofType, patternMatch, sequencePrimary, sequenceSecondary, toOptional, toXor, toXor, trampoline, unit, zip, zip, zip, zip, zip, zip, zip
applyFunctions
collect, fold, fold, generate, iterate, iterator, mapReduce, mkString, newSubscriber, of, stream, subscribe, test, 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, 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
public <R> com.aol.cyclops.control.Xor<R,PT> secondaryMap(java.util.function.Function<? super ST,? extends R> fn)
public <R> R visit(java.util.function.Function<? super ST,? extends R> secondary, java.util.function.Function<? super PT,? extends R> primary)
public PT get()
public boolean isPresent()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.aol.cyclops.control.Xor<ST,PT> filter(java.util.function.Predicate<? super PT> test)
public com.aol.cyclops.control.Xor<ST,PT> secondaryToPrimayMap(java.util.function.Function<? super ST,? extends PT> fn)
public <R> com.aol.cyclops.control.Xor<ST,R> map(java.util.function.Function<? super PT,? extends R> fn)
map
in interface com.aol.cyclops.control.Xor<ST,PT>
map
in interface com.aol.cyclops.types.ConvertableFunctor<PT>
map
in interface com.aol.cyclops.types.Functor<PT>
map
in interface com.aol.cyclops.types.MonadicValue<PT>
map
in interface com.aol.cyclops.types.MonadicValue2<ST,PT>
public com.aol.cyclops.control.Xor<ST,PT> secondaryPeek(java.util.function.Consumer<? super ST> action)
public <R> com.aol.cyclops.control.Eval<R> matches(java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<ST,R>,com.aol.cyclops.control.Matchable.CheckValue1<ST,R>> fn1, java.util.function.Function<com.aol.cyclops.control.Matchable.CheckValue1<PT,R>,com.aol.cyclops.control.Matchable.CheckValue1<PT,R>> fn2, java.util.function.Supplier<? extends R> otherwise)
public com.aol.cyclops.types.Value<ST> secondaryValue()
public ST secondaryGet()
public java.util.Optional<ST> secondaryToOptional()
public com.aol.cyclops.control.ReactiveSeq<ST> secondaryToStream()
public <LT1,RT1> com.aol.cyclops.control.Xor<LT1,RT1> flatMap(java.util.function.Function<? super PT,? extends com.aol.cyclops.types.MonadicValue2<? extends LT1,? extends RT1>> mapper)
public <LT1,RT1> com.aol.cyclops.control.Xor<LT1,RT1> secondaryFlatMap(java.util.function.Function<? super ST,? extends com.aol.cyclops.control.Xor<LT1,RT1>> mapper)
public com.aol.cyclops.control.Xor<ST,PT> secondaryToPrimayFlatMap(java.util.function.Function<? super ST,? extends com.aol.cyclops.control.Xor<ST,PT>> fn)
public void peek(java.util.function.Consumer<? super ST> stAction, java.util.function.Consumer<? super PT> ptAction)
public boolean isPrimary()
public boolean isSecondary()