A
- the value typeB
- the mapped comparison typepublic final class CmpEqBy<A,B extends Comparable<B>> extends Object implements Fn3<Fn1<? super A,? extends B>,A,A,Boolean>
A
to some Comparable
type B
and two values
of type A
, return true
if the first value is strictly equal to the second value (according
to Comparable.compareTo(Object)
in terms of their mapped B
results; otherwise, return false.Modifier and Type | Method and Description |
---|---|
BiPredicate<A,A> |
apply(Fn1<? super A,? extends B> compareFn)
Partially apply this function by taking its first argument.
|
Predicate<A> |
apply(Fn1<? super A,? extends B> compareFn,
A x)
Partially apply this function by taking its first two arguments.
|
Boolean |
checkedApply(Fn1<? super A,? extends B> compareFn,
A x,
A y) |
static <A,B extends Comparable<B>> |
cmpEqBy() |
static <A,B extends Comparable<B>> |
cmpEqBy(Fn1<? super A,? extends B> compareFn) |
static <A,B extends Comparable<B>> |
cmpEqBy(Fn1<? super A,? extends B> compareFn,
A x) |
static <A,B extends Comparable<B>> |
cmpEqBy(Fn1<? super A,? extends B> compareFn,
A x,
A y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
checkedApply, curried, curry, fn2, fromBiFunction, toBiFunction
public Boolean checkedApply(Fn1<? super A,? extends B> compareFn, A x, A y)
checkedApply
in interface Fn3<Fn1<? super A,? extends B extends Comparable<B>>,A,A,Boolean>
public BiPredicate<A,A> apply(Fn1<? super A,? extends B> compareFn)
Fn3
apply
in interface Fn1<Fn1<? super A,? extends B extends Comparable<B>>,Fn1<A,Fn1<A,Boolean>>>
apply
in interface Fn2<Fn1<? super A,? extends B extends Comparable<B>>,A,Fn1<A,Boolean>>
apply
in interface Fn3<Fn1<? super A,? extends B extends Comparable<B>>,A,A,Boolean>
compareFn
- the first argumentFn2
<B, C, D>public Predicate<A> apply(Fn1<? super A,? extends B> compareFn, A x)
Fn3
public static <A,B extends Comparable<B>> CmpEqBy<A,B> cmpEqBy()
public static <A,B extends Comparable<B>> BiPredicate<A,A> cmpEqBy(Fn1<? super A,? extends B> compareFn)
public static <A,B extends Comparable<B>> Predicate<A> cmpEqBy(Fn1<? super A,? extends B> compareFn, A x)
public static <A,B extends Comparable<B>> Boolean cmpEqBy(Fn1<? super A,? extends B> compareFn, A x, A y)