You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <ba...@generationjava.com> on 2002/08/20 00:43:24 UTC

[Collection] CollectionUtils.lessThan/greaterThan

Any interest in:

    public boolean lessThan(Comparable c1, Comparable c2) {
        return (c1.compareTo(c2) < 0);
    }

and all its obvious friends. lessThanOrEquals(?), greaterThan.
lessThan(Object o1, Object o2, Comparator cmp).

It really irritates me that when I have to do the < 0 > 0 semantics when I
really want to say lessThan or greaterThan.

If this is blatantly existing in an API somewhere, please tell me publicly
so I can feel rightly ashamed.

Hen


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>