Suggestion for new Predicates methods

0 views
Skip to first unread message

JR Boyens

unread,
Apr 8, 2008, 5:15:02 PM4/8/08
to Google Collections Library - users list
I'd like to suggest the addition of:

<T> Predicate<T> Predicates.greaterThan(T target, Comparator<T>
comparator)
<T> Predicate<T> Predicates.lessThan(T target, Comparator<T>
comparator)

or something along those lines (probably also minus the Comparator<T>
for targets that implement Comparable<T>).

I've used these regularly lately, and thought they may be a good add.


Thanks for a great library,
--
JR Boyens
Reply all
Reply to author
Forward
0 new messages