Hello, no oppinion if good or bad, just want to point out that typically "largerThan" means x > y and a more common name (think html entity) is "greater than" and "less than". The other (>=, -ge) operator would be greaterOrEqual.
Greetings Bernd Am Tue, 13 May 2014 21:06:56 +0100 schrieb Duncan Jones <djo...@apache.org>: > Hi, > > Does anyone have any objections to me implementing > https://issues.apache.org/jira/browse/LANG-1012? The goal is to > introduce: > > Validate.isFalse() > Validate.largerThan() // isLargerThan() ?? > Validate.smallerThan() // isSmallerThan() ?? > > The isFalse() is just the natural counterpart to isTrue(), much like > JUnit added assertFalse(). The other two methods are slightly neater > ways of expressing "x >= y" or "x <= y" type constraints. Without > these, one either writes: > > Validate.isTrue(x >= y); > > or > > Validate.inclusiveBetween(y, Long.MAX_VALUE, x); > > Neither of which is as concise as it could be. > > Duncan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org