Class CmpEq<A extends java.lang.Comparable<A>>
- java.lang.Object
-
- com.jnape.palatable.lambda.functions.builtin.fn2.CmpEq<A>
-
- Type Parameters:
A- the value type
- All Implemented Interfaces:
Fn1<A,Fn1<A,java.lang.Boolean>>,Fn2<A,A,java.lang.Boolean>,BiPredicate<A,A>,Applicative<Fn1<A,java.lang.Boolean>,Fn1<A,?>>,Cartesian<A,Fn1<A,java.lang.Boolean>,Fn1<?,?>>,Cocartesian<A,Fn1<A,java.lang.Boolean>,Fn1<?,?>>,Contravariant<A,Profunctor<?,Fn1<A,java.lang.Boolean>,Fn1<?,?>>>,Functor<Fn1<A,java.lang.Boolean>,Fn1<A,?>>,Profunctor<A,Fn1<A,java.lang.Boolean>,Fn1<?,?>>,Monad<Fn1<A,java.lang.Boolean>,Fn1<A,?>>,MonadReader<A,Fn1<A,java.lang.Boolean>,Fn1<A,?>>,MonadRec<Fn1<A,java.lang.Boolean>,Fn1<A,?>>,MonadWriter<A,Fn1<A,java.lang.Boolean>,Fn1<A,?>>
public final class CmpEq<A extends java.lang.Comparable<A>> extends java.lang.Object implements BiPredicate<A,A>
Given twoComparablevalues of typeA, returntrueif the first value is strictly equal to the second value (according toComparable.compareTo(Object); otherwise, return false.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCmpEq()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleancheckedApply(A x, A y)static <A extends java.lang.Comparable<A>>
CmpEq<A>cmpEq()static <A extends java.lang.Comparable<A>>
Predicate<A>cmpEq(A x)static <A extends java.lang.Comparable<A>>
java.lang.BooleancmpEq(A x, A y)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jnape.palatable.lambda.functions.specialized.BiPredicate
and, apply, contraMap, diMapL, discardR, flip, negate, or, toBiPredicate, uncurry
-
Methods 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, zip
-
Methods inherited from interface com.jnape.palatable.lambda.functions.Fn2
apply, checkedApply, compose, toBiFunction, widen
-
-
-
-
Field Detail
-
INSTANCE
private static final CmpEq<?> INSTANCE
-
-
Method Detail
-
cmpEq
public static <A extends java.lang.Comparable<A>> CmpEq<A> cmpEq()
-
cmpEq
public static <A extends java.lang.Comparable<A>> Predicate<A> cmpEq(A x)
-
cmpEq
public static <A extends java.lang.Comparable<A>> java.lang.Boolean cmpEq(A x, A y)
-
-