commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject [Collection] CollectionUtils.lessThan/greaterThan
Date Mon, 19 Aug 2002 22:43:24 GMT

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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message