A
- the first argument typeB
- the second argument type@FunctionalInterface public interface BiPredicate<A,B> extends Fn2<A,B,Boolean>
Modifier and Type | Method and Description |
---|---|
default BiPredicate<A,B> |
and(BiPredicate<? super A,? super B> other)
Left-to-right short-circuiting logical conjunction.
|
default Predicate<B> |
apply(A a)
Partially apply this function by passing its first argument.
|
default <Z> Fn2<Z,B,Boolean> |
contraMap(Fn1<? super Z,? extends A> fn)
Contravariantly map
A <- B . |
default <Z> BiPredicate<Z,B> |
diMapL(Fn1<? super Z,? extends A> fn)
Contravariantly map over the argument to this function, producing a function that takes the new argument type,
and produces the same result.
|
default <D> BiPredicate<A,B> |
discardR(Applicative<D,Fn1<A,?>> appB)
Sequence both this
Applicative and appB , discarding appB's result and
returning this Applicative . |
default BiPredicate<B,A> |
flip()
Flip the order of the arguments.
|
static <A,B> BiPredicate<A,B> |
fromBiPredicate(BiPredicate<A,B> biPredicate)
Create a
BiPredicate from a java BiPredicate . |
default BiPredicate<A,B> |
negate()
Logical negation.
|
default BiPredicate<A,B> |
or(BiPredicate<? super A,? super B> other)
Left-to-right short-circuiting logical disjunction.
|
default BiPredicate<A,B> |
toBiPredicate()
Convert this
BiPredicate to a java BiPredicate . |
default Predicate<? super Product2<? extends A,? extends B>> |
uncurry()
|
apply, checkedApply, checkedApply, compose, curried, curry, fn2, fromBiFunction, toBiFunction, widen
default BiPredicate<B,A> flip()
default <D> BiPredicate<A,B> discardR(Applicative<D,Fn1<A,?>> appB)
Applicative
and appB
, discarding appB's
result and
returning this Applicative
. This is generally useful for sequentially performing side-effects.discardR
in interface Applicative<Fn1<B,Boolean>,Fn1<A,?>>
discardR
in interface Fn1<A,Fn1<B,Boolean>>
discardR
in interface Fn2<A,B,Boolean>
discardR
in interface Monad<Fn1<B,Boolean>,Fn1<A,?>>
discardR
in interface MonadReader<A,Fn1<B,Boolean>,Fn1<A,?>>
discardR
in interface MonadRec<Fn1<B,Boolean>,Fn1<A,?>>
discardR
in interface MonadWriter<A,Fn1<B,Boolean>,Fn1<A,?>>
D
- the type of appB's parameterappB
- the other Applicativedefault <Z> BiPredicate<Z,B> diMapL(Fn1<? super Z,? extends A> fn)
diMapL
in interface Cartesian<A,Fn1<B,Boolean>,Fn1<?,?>>
diMapL
in interface Cocartesian<A,Fn1<B,Boolean>,Fn1<?,?>>
diMapL
in interface Fn1<A,Fn1<B,Boolean>>
diMapL
in interface Fn2<A,B,Boolean>
diMapL
in interface Profunctor<A,Fn1<B,Boolean>,Fn1<?,?>>
Z
- the new argument typefn
- the contravariant argument mapping functionFn1
<Z, B>default <Z> Fn2<Z,B,Boolean> contraMap(Fn1<? super Z,? extends A> fn)
A <- B
.contraMap
in interface Cartesian<A,Fn1<B,Boolean>,Fn1<?,?>>
contraMap
in interface Cocartesian<A,Fn1<B,Boolean>,Fn1<?,?>>
contraMap
in interface Contravariant<A,Profunctor<?,Fn1<B,Boolean>,Fn1<?,?>>>
contraMap
in interface Fn1<A,Fn1<B,Boolean>>
contraMap
in interface Fn2<A,B,Boolean>
contraMap
in interface Profunctor<A,Fn1<B,Boolean>,Fn1<?,?>>
Z
- the new parameter typefn
- the mapping functiondefault BiPredicate<A,B> and(BiPredicate<? super A,? super B> other)
other
- the biPredicate to test if this one succeedsdefault BiPredicate<A,B> or(BiPredicate<? super A,? super B> other)
other
- the biPredicate to test if this one failsdefault BiPredicate<A,B> negate()
default BiPredicate<A,B> toBiPredicate()
BiPredicate
to a java BiPredicate
.BiPredicate
static <A,B> BiPredicate<A,B> fromBiPredicate(BiPredicate<A,B> biPredicate)
BiPredicate
from a java BiPredicate
.A
- the first input typeB
- the second input typebiPredicate
- the BiPredicate
BiPredicate