public static <E> Filter<E> createLessThanFilter(final E base, final Comparator<E> comparator) 
    {
        return new Filter<E>() {
            public boolean isValid(E obj)
            {
                return comparator.compare(obj, base) < 0;
            }
        };
    }
public static <E> Filter<E> createLessThanFilter(final E base, final Comparator<E> comparator) 
    {
        return new Filter<E>() {
            public boolean isValid(E obj)
            {
                return comparator.compare(obj, base) < 0;
            }
        };
    }
public static < E > Filter < E > createLessThanFilter ( final E base , final Comparator < E > comparator ) { return new Filter < E > ( ) { public boolean isValid ( E obj ) { return comparator . compare ( obj , base ) < 0 ; } } ; }
Creates a filter where valid when an Object in a
collection is considered <strong>less than</strong> the base object,
based on the given Comparator.
Creates a filter where valid when an Object in a collection is considered <strong > less than< / strong > the base object based on the given Comparator .