public final class Xor extends Object implements Monoid<Boolean>, BiPredicate<Boolean,Boolean>
^
.
Note that this implementation behaves as a cascade of binary exclusive-or operations, as is the only possible monoidal behavior when applied to an unknown number of inputs.
Modifier and Type | Method and Description |
---|---|
Boolean |
checkedApply(Boolean x,
Boolean y) |
Xor |
flip()
Flip the order of the arguments.
|
Boolean |
identity()
The identity element of this monoid.
|
static Xor |
xor() |
static Fn1<Boolean,Boolean> |
xor(Boolean x) |
static Boolean |
xor(Boolean x,
Boolean y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
foldLeft, foldMap, foldRight, monoid, monoid, reduceLeft, reduceRight
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, fn2, fromBiFunction, toBiFunction, uncurry, widen
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, fn1, fromFunction, lazyZip, listens, local, pure, pureFn1, thunk, toFunction, trampolineM, zip, zip
and, apply, contraMap, diMapL, discardR, fromBiPredicate, negate, or, toBiPredicate, uncurry
public Boolean identity()
Monoid
public Boolean checkedApply(Boolean x, Boolean y)
checkedApply
in interface Fn2<Boolean,Boolean,Boolean>
public static Xor xor()