commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan Jones <djo...@apache.org>
Subject [lang] Any objections to LANG-1012?
Date Tue, 13 May 2014 20:06:56 GMT
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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message