commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject [lang] StringUtils.isEmpty summary (3)
Date Sun, 20 Jul 2003 16:25:51 GMT
CVS HEAD has been changed to:

isEmpty - true for "" or null  (change from 1.0, no longer trims)

isNotEmpty - opposite (no change from 1.0)

isBlank - true for all whitespace, "" or null  (new for 2.0)

isNotBlank - opposite (new for 2.0)


These are currently intended as the 2.0 release methods.

Many good points have been made both for and against null acceptance.
However, StringUtils is basically a null accepting class, so null=true is
most appropriate for these methods. Unfortunately, we can't please everybody
here.

For a 2.1/3.0 release a StringUtilsNPE could be added to provide the harsh
null behaviour (null input -> NPE)

Stephen



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message