Class CmpEqWith<A>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn3.CmpEqWith<A>
- Type Parameters:
A- the value type
- All Implemented Interfaces:
Fn1<Comparator<A>,,Fn1<A, Fn1<A, Boolean>>> Fn2<Comparator<A>,,A, Fn1<A, Boolean>> Fn3<Comparator<A>,,A, A, Boolean> Applicative<Fn1<A,,Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>> Cartesian<Comparator<A>,,Fn1<A, Fn1<A, Boolean>>, Fn1<?, ?>> Cocartesian<Comparator<A>,,Fn1<A, Fn1<A, Boolean>>, Fn1<?, ?>> Contravariant<Comparator<A>,,Profunctor<?, Fn1<A, Fn1<A, Boolean>>, Fn1<?, ?>>> Functor<Fn1<A,,Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>> Profunctor<Comparator<A>,,Fn1<A, Fn1<A, Boolean>>, Fn1<?, ?>> Monad<Fn1<A,,Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>> MonadReader<Comparator<A>,,Fn1<A, Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>> MonadRec<Fn1<A,,Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>> MonadWriter<Comparator<A>,Fn1<A, Fn1<A, Boolean>>, Fn1<Comparator<A>, ?>>
Given a
Comparator from some type A and two values of type A, return
true if the first value is strictly equal to the second value (according to
Comparator.compare(Object, Object) otherwise, return false.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Comparator<A> compareFn) Partially apply this function by taking its first argument.apply(Comparator<A> compareFn, A x) Partially apply this function by taking its first two arguments.checkedApply(Comparator<A> comparator, A a, A a2) static <A> CmpEqWith<A> static <A> BiPredicate<A, A> cmpEqWith(Comparator<A> comparator) static <A> Predicate<A> cmpEqWith(Comparator<A> comparator, A x) static <A> BooleancmpEqWith(Comparator<A> comparator, A x, A y) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jnape.palatable.lambda.functions.Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zipMethods inherited from interface com.jnape.palatable.lambda.functions.Fn2
checkedApply, toBiFunction
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
CmpEqWith
private CmpEqWith()
-
-
Method Details
-
apply
Description copied from interface:Fn3Partially apply this function by taking its first argument. -
apply
Description copied from interface:Fn3Partially apply this function by taking its first two arguments. -
checkedApply
- Specified by:
checkedApplyin interfaceFn3<Comparator<A>,A, A, Boolean>
-
cmpEqWith
-
cmpEqWith
-
cmpEqWith
-
cmpEqWith
-