Class CmpEqBy<A,B extends Comparable<B>>

java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn3.CmpEqBy<A,B>
Type Parameters:
A - the value type
B - the mapped comparison type
All Implemented Interfaces:
Fn1<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>>, Fn2<Fn1<? super A,? extends B>,A,Fn1<A,Boolean>>, Fn3<Fn1<? super A,? extends B>,A,A,Boolean>, Applicative<Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>, Cartesian<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>,Fn1<?,?>>, Cocartesian<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>,Fn1<?,?>>, Contravariant<Fn1<? super A,? extends B>,Profunctor<?,Fn1<A,Fn1<A,Boolean>>,Fn1<?,?>>>, Functor<Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>, Profunctor<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>,Fn1<?,?>>, Monad<Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadReader<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadRec<Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>, MonadWriter<Fn1<? super A,? extends B>,Fn1<A,Fn1<A,Boolean>>,Fn1<Fn1<? super A,? extends B>,?>>

public final class CmpEqBy<A,B extends Comparable<B>> extends Object implements Fn3<Fn1<? super A,? extends B>,A,A,Boolean>
Given a mapping function from some type 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.
See Also:
  • Field Details

    • INSTANCE

      private static final CmpEqBy<?,?> INSTANCE
  • Constructor Details

    • CmpEqBy

      private CmpEqBy()
  • Method Details