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

Reply via email to