On Tue, Aug 11, 2009 at 2:09 AM, Henri Yandell<flame...@gmail.com> wrote: >> - sizeInRange(int minSize, int maxSize, String string, String message) >> - throws an IllegalArgumentException stating (message + value) when >> the length of the provided string does not fall between the minimum and >> maximum size values (inclusive). > > I like 'between' more than 'inRange'. > > I think a simpler API would be (ignoring the String message overloads): > > between(Comparable<T> start, Comparable<T> end, Comparable<T> value) > between(int minSize, int maxSize, int value)
How would you account for the "inclusiveness" of both sides? --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org