commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <>
Subject [lang 3] Validate: rename methods
Date Sun, 29 Nov 2009 17:31:45 GMT
I want to rename isTrue to validateArgument (which throws 
IllegalArgumentException); then also introduce validateState (which 
throws IllegalStateException).

I also propose we rename the methods so that the verb "validate" 
prefixes them all (Google Collections uses "check"). Furthermore, this 
will better namespace the method when static imports are used:
isTrue         -> validateArgument / validateState
notNull        -> validateNotNull
notEmpty       -> validateNotEmpty
notBlank       -> validateNotBlank
validIndex     -> validateElementIndex
noNullElements -> validateElementsNotNull

I also want to introduce some new methods:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message