net.sf.jga.fn.comparison
Class ComparisonFunctors

java.lang.Object
  extended by 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

Constructor Summary
ComparisonFunctors()
           
 
Method Summary
static
<T extends java.lang.Comparable<? super T>>
UnaryFunctor<T,java.lang.Boolean>
between(T lo, T hi)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
between(T lo, T hi, java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
between(UnaryFunctor<T,java.lang.Boolean> lo, UnaryFunctor<T,java.lang.Boolean> hi)
           
static
<T> BinaryFunctor<T,T,java.lang.Integer>
comparatorFn(java.util.Comparator<T> comp)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
equalEqual()
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
equalEqual(T value)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
equalTo(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
equalTo(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
equalTo(java.util.Comparator<? super T> comp, T value)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
equalTo(Equality<T> eq, T value)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
equalTo(T value)
           
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean>
greater(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
greater(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
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
<T> BinaryFunctor<T,T,java.lang.Boolean>
greaterEqual(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
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
<T> UnaryFunctor<T,java.lang.Boolean>
isNull()
           
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,java.lang.Boolean>
less(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
less(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
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
<T> BinaryFunctor<T,T,java.lang.Boolean>
lessEqual(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
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
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,T>
max(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,T>
max(java.util.Comparator<? super T> comp)
           
static
<T extends java.lang.Comparable<? super T>>
BinaryFunctor<T,T,T>
min(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,T>
min(java.util.Comparator<? super T> comp)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
notEqualEqual()
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
notEqualEqual(T value)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
notEqualTo(java.lang.Class<T> hint)
           
static
<T> BinaryFunctor<T,T,java.lang.Boolean>
notEqualTo(java.util.Comparator<? super T> comp)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
notEqualTo(java.util.Comparator<? super T> comp, T value)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
notEqualTo(T value)
           
static
<T> UnaryFunctor<T,java.lang.Boolean>
notNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonFunctors

public ComparisonFunctors()
Method Detail

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.