On Fri, 18 Jul 2003, Gary Gregory wrote:

> I like #2.

Boo! ;)

Seriously for a moment. I think the usage of commons-lang is beginning to
hit the up-curve. It's creeping into projects and people are starting to
talk about it [along with other Commons things] outside of the usual
circles. A 2.0 soon will really take off I believe.

> A clarification please: I do not see why any isWhitespace methods are needed
> since the isBlank methods trim()'s their arguments.
>
> isBlank(null) returns true
> isWS(null) returns true
>
> isBlank("") returns true
> isWS("") returns true
>
> isBlank(" ") returns true
> isWS(" ") returns true
>
> isBlank("\t\n") returns true
> isWS("\t\n") returns true
>
> isBlank(" Hello ") returns false
> isWS(" Hello ") returns false
>
> Am I missing something?

Re-reading Stephen's suggestion, only thing I can see is that he
suggests that isBlank("\t\n") would not be true. However a quick test
shows that trim() removes all whitespace, so I'm a believer in Gary's
point.

Hen



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to