net.sf.jga.fn.comparison
Class ComparisonFunctors
java.lang.Object
net.sf.jga.fn.comparison.ComparisonFunctors
public final class ComparisonFunctors
- extends java.lang.Object
Static factory methods for the functors in the Comparison package.
Copyright © 2006 David A. Hall
- Author:
- David A. Hall
Method Summary |
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean> |
|
between(T lo,
T hi)
|
static
|
between(T lo,
T hi,
java.util.Comparator<? super T> comp)
|
static
|
between(UnaryFunctor<T,java.lang.Boolean> lo,
UnaryFunctor<T,java.lang.Boolean> hi)
|
static
|
comparatorFn(java.util.Comparator<T> comp)
|
static
|
equalEqual()
|
static
|
equalEqual(T value)
|
static
|
equalTo(java.lang.Class<T> hint)
|
static
|
equalTo(java.util.Comparator<? super T> comp)
|
static
|
equalTo(java.util.Comparator<? super T> comp,
T value)
|
static
|
equalTo(Equality<T> eq,
T value)
|
static
|
equalTo(T value)
|
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean> |
|
greater(java.lang.Class<T> hint)
|
static
|
greater(java.util.Comparator<? super T> comp)
|
static
|
greater(java.util.Comparator<? super T> comp,
T value)
|
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean> |
|
greater(T value)
|
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean> |
|
greaterEqual(java.lang.Class<T> hint)
|
static
|
greaterEqual(java.util.Comparator<? super T> comp)
|
static
|
greaterEqual(java.util.Comparator<? super T> comp,
T value)
|
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean> |
|
greaterEqual(T value)
|
static
|
isNull()
|
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean> |
|
less(java.lang.Class<T> hint)
|
static
|
less(java.util.Comparator<? super T> comp)
|
static
|
less(java.util.Comparator<? super T> comp,
T value)
|
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean> |
|
less(T value)
|
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean> |
|
lessEqual(java.lang.Class<T> hint)
|
static
|
lessEqual(java.util.Comparator<? super T> comp)
|
static
|
lessEqual(java.util.Comparator<? super T> comp,
T value)
|
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean> |
|
lessEqual(T value)
|
static
|
max(java.lang.Class<T> hint)
|
static
|
max(java.util.Comparator<? super T> comp)
|
static
|
min(java.lang.Class<T> hint)
|
static
|
min(java.util.Comparator<? super T> comp)
|
static
|
notEqualEqual()
|
static
|
notEqualEqual(T value)
|
static
|
notEqualTo(java.lang.Class<T> hint)
|
static
|
notEqualTo(java.util.Comparator<? super T> comp)
|
static
|
notEqualTo(java.util.Comparator<? super T> comp,
T value)
|
static
|
notEqualTo(T value)
|
static
|
notNull()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComparisonFunctors
public ComparisonFunctors()
between
public static <T> UnaryFunctor<T,java.lang.Boolean> between(T lo,
T hi,
java.util.Comparator<? super T> comp)
between
public static <T extends java.lang.Comparable<? super T>> UnaryFunctor<T,java.lang.Boolean> between(T lo,
T hi)
between
public static <T> UnaryFunctor<T,java.lang.Boolean> between(UnaryFunctor<T,java.lang.Boolean> lo,
UnaryFunctor<T,java.lang.Boolean> hi)
comparatorFn
public static <T> BinaryFunctor<T,T,java.lang.Integer> comparatorFn(java.util.Comparator<T> comp)
equalEqual
public static <T> BinaryFunctor<T,T,java.lang.Boolean> equalEqual()
equalEqual
public static <T> UnaryFunctor<T,java.lang.Boolean> equalEqual(T value)
equalTo
public static <T> BinaryFunctor<T,T,java.lang.Boolean> equalTo(java.lang.Class<T> hint)
equalTo
public static <T> BinaryFunctor<T,T,java.lang.Boolean> equalTo(java.util.Comparator<? super T> comp)
equalTo
public static <T> UnaryFunctor<T,java.lang.Boolean> equalTo(T value)
equalTo
public static <T> UnaryFunctor<T,java.lang.Boolean> equalTo(java.util.Comparator<? super T> comp,
T value)
equalTo
public static <T> UnaryFunctor<T,java.lang.Boolean> equalTo(Equality<T> eq,
T value)
greater
public static <T> BinaryFunctor<T,T,java.lang.Boolean> greater(java.util.Comparator<? super T> comp)
greater
public static <T> UnaryFunctor<T,java.lang.Boolean> greater(java.util.Comparator<? super T> comp,
T value)
greater
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,java.lang.Boolean> greater(java.lang.Class<T> hint)
greater
public static <T extends java.lang.Comparable<? super T>> UnaryFunctor<T,java.lang.Boolean> greater(T value)
greaterEqual
public static <T> BinaryFunctor<T,T,java.lang.Boolean> greaterEqual(java.util.Comparator<? super T> comp)
greaterEqual
public static <T> UnaryFunctor<T,java.lang.Boolean> greaterEqual(java.util.Comparator<? super T> comp,
T value)
greaterEqual
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,java.lang.Boolean> greaterEqual(java.lang.Class<T> hint)
greaterEqual
public static <T extends java.lang.Comparable<? super T>> UnaryFunctor<T,java.lang.Boolean> greaterEqual(T value)
isNull
public static <T> UnaryFunctor<T,java.lang.Boolean> isNull()
notNull
public static <T> UnaryFunctor<T,java.lang.Boolean> notNull()
less
public static <T> BinaryFunctor<T,T,java.lang.Boolean> less(java.util.Comparator<? super T> comp)
less
public static <T> UnaryFunctor<T,java.lang.Boolean> less(java.util.Comparator<? super T> comp,
T value)
less
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,java.lang.Boolean> less(java.lang.Class<T> hint)
less
public static <T extends java.lang.Comparable<? super T>> UnaryFunctor<T,java.lang.Boolean> less(T value)
lessEqual
public static <T> BinaryFunctor<T,T,java.lang.Boolean> lessEqual(java.util.Comparator<? super T> comp)
lessEqual
public static <T> UnaryFunctor<T,java.lang.Boolean> lessEqual(java.util.Comparator<? super T> comp,
T value)
lessEqual
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,java.lang.Boolean> lessEqual(java.lang.Class<T> hint)
lessEqual
public static <T extends java.lang.Comparable<? super T>> UnaryFunctor<T,java.lang.Boolean> lessEqual(T value)
max
public static <T> BinaryFunctor<T,T,T> max(java.util.Comparator<? super T> comp)
max
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,T> max(java.lang.Class<T> hint)
min
public static <T> BinaryFunctor<T,T,T> min(java.util.Comparator<? super T> comp)
min
public static <T extends java.lang.Comparable<? super T>> BinaryFunctor<T,T,T> min(java.lang.Class<T> hint)
notEqualEqual
public static <T> BinaryFunctor<T,T,java.lang.Boolean> notEqualEqual()
notEqualEqual
public static <T> UnaryFunctor<T,java.lang.Boolean> notEqualEqual(T value)
notEqualTo
public static <T> BinaryFunctor<T,T,java.lang.Boolean> notEqualTo(java.lang.Class<T> hint)
notEqualTo
public static <T> BinaryFunctor<T,T,java.lang.Boolean> notEqualTo(java.util.Comparator<? super T> comp)
notEqualTo
public static <T> UnaryFunctor<T,java.lang.Boolean> notEqualTo(T value)
notEqualTo
public static <T> UnaryFunctor<T,java.lang.Boolean> notEqualTo(java.util.Comparator<? super T> comp,
T value)
Copyright © 2002-2006 David A. Hall. All Rights Reserved.