IMO toes does not belong in lang. It's too much like the bean validation 
framework. It has potential to leak into a giant pile of methods with support 
for all doors of objects and data types. 

Providing what java 7 has in Objects should be the limit, more or less. 

Gary

<div>-------- Original message --------</div><div>From: Duncan Jones 
<[email protected]> </div><div>Date:05/13/2014  16:06  (GMT-05:00) 
</div><div>To: Commons Developers List <[email protected]> 
</div><div>Subject: [lang] Any objections to LANG-1012? </div><div>
</div>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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to