Class GTWith<A>
- java.lang.Object
-
- com.jnape.palatable.lambda.functions.builtin.fn3.GTWith<A>
-
- Type Parameters:
A- the value type
- All Implemented Interfaces:
Fn1<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>>,Fn2<java.util.Comparator<A>,A,Fn1<A,java.lang.Boolean>>,Fn3<java.util.Comparator<A>,A,A,java.lang.Boolean>,Applicative<Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>,Cartesian<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<?,?>>,Cocartesian<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<?,?>>,Contravariant<java.util.Comparator<A>,Profunctor<?,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<?,?>>>,Functor<Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>,Profunctor<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<?,?>>,Monad<Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>,MonadReader<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>,MonadRec<Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>,MonadWriter<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>,Fn1<java.util.Comparator<A>,?>>
public final class GTWith<A> extends java.lang.Object implements Fn3<java.util.Comparator<A>,A,A,java.lang.Boolean>
Given aComparatorfrom some typeAand two values of typeA, returntrueif the second value is strictly greater than the first value in terms of their mappedBresults; otherwise, return false.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateGTWith()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiPredicate<A,A>apply(java.util.Comparator<A> compareFn)Partially apply this function by taking its first argument.Predicate<A>apply(java.util.Comparator<A> compareFn, A x)Partially apply this function by taking its first two arguments.java.lang.BooleancheckedApply(java.util.Comparator<A> comparator, A a, A a2)static <A> GTWith<A>gtWith()static <A> BiPredicate<A,A>gtWith(java.util.Comparator<A> comparator)static <A> Predicate<A>gtWith(java.util.Comparator<A> comparator, A y)static <A> java.lang.BooleangtWith(java.util.Comparator<A> comparator, A y, A x)-
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.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
checkedApply, toBiFunction
-
-
-
-
Field Detail
-
INSTANCE
private static final GTWith<?> INSTANCE
-
-
Method Detail
-
apply
public BiPredicate<A,A> apply(java.util.Comparator<A> compareFn)
Description copied from interface:Fn3Partially apply this function by taking its first argument.- Specified by:
applyin interfaceFn1<java.util.Comparator<A>,Fn1<A,Fn1<A,java.lang.Boolean>>>- Specified by:
applyin interfaceFn2<java.util.Comparator<A>,A,Fn1<A,java.lang.Boolean>>- Specified by:
applyin interfaceFn3<java.util.Comparator<A>,A,A,java.lang.Boolean>- Parameters:
compareFn- the first argument- Returns:
- an
Fn2<B, C, D>
-
apply
public Predicate<A> apply(java.util.Comparator<A> compareFn, A x)
Description copied from interface:Fn3Partially apply this function by taking its first two arguments.
-
gtWith
public static <A> GTWith<A> gtWith()
-
gtWith
public static <A> BiPredicate<A,A> gtWith(java.util.Comparator<A> comparator)
-
gtWith
public static <A> Predicate<A> gtWith(java.util.Comparator<A> comparator, A y)
-
gtWith
public static <A> java.lang.Boolean gtWith(java.util.Comparator<A> comparator, A y, A x)
-
-