commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Jonker <...@pobox.com>
Subject Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces
Date Wed, 16 Jul 2003 16:28:18 GMT
I don't have a vote, but I'd be quite happy with this set of methods.  It's
a great improvement over 1.x

.T.


On 7/15/03 8:12 PM, scolebourne@btopenworld.com wrote:

> Thus I propose:
> isEmpty(), true for "", false for null
> isEmptyOrNull(), true for "" and null
> isEmptyTrimmed(), trim() then true for "", false for null
> isEmptyTrimmedOrNull(), trim() then true for "", true for null
> 
> (Other proposed methods can be considered after 2.0. These should be
> considered now)
> 
> I also propose the negative methods are the exact opposite.
> isNotEmpty()
> isNotEmptyOrNull()
> isNotEmptyTrimmed()
> isNotEmptyTrimmedOrNull()


---------------------------------------------------------------------
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