src/main/java/com/workplacesystems/utilsj/collections/helpers/ComparisonFilterFactory.java
public static <E extends Comparable<E>> Filter<E> createLessThanFilter(final E base) 
    {
        return createLessThanFilter(base, new Comparator<E>() 
        {
            public int compare(E obj1, E obj2)
            {
                return obj1.compareTo(obj2);
            }
        });
    }
public static <E extends Comparable<E>> Filter<E> createLessThanFilter(final E base) 
    {
        return createLessThanFilter(base, new Comparator<E>() 
        {
            public int compare(E obj1, E obj2)
            {
                return obj1.compareTo(obj2);
            }
        });
    }
public static < E extends Comparable < E > > Filter < E > createLessThanFilter ( final E base ) { return createLessThanFilter ( base , new Comparator < E > ( ) { public int compare ( E obj1 , E obj2 ) { return obj1 . compareTo ( obj2 ) ; } } ) ; }
Creates a filter where valid when an Comparable in a
collection is considered <strong>less than</strong> the base object.
Creates a filter where valid when an Comparable in a collection is considered <strong > less than< / strong > the base object .