RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-18 Thread Gary Gregory
To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I missed this one earlier, so I guess 2.0 would still work for me, though I find isEmptyTrimmedOrNull() extremely cumbersome. I'd likely just move to isEmpty( trim( str

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-18 Thread __matthewHawthorne
Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I missed this one earlier, so I guess 2.0 would still work for me, though I find isEmptyTrimmedOrNull() extremely cumbersome. I'd likely just move to isEmpty( trim( str ) ) myself, rather

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-16 Thread Stephen Colebourne
for spaces I guess. Stephen Thanks, Gary -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 17:12 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces OK

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-16 Thread Todd Jonker
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, [EMAIL PROTECTED] wrote: Thus I propose: isEmpty(), true for , false for null isEmptyOrNull(), true for and null isEmptyTrimmed(), trim() then true for , false

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-16 Thread Henri Yandell
To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces OK, time to summarise the debate a little. I have examined Java's String and StringBuffer classes. These refer to 'empty' as . They make no reference to 'blank

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-16 Thread Stephen Colebourne
Developers List [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:05 PM Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces +1 to Stephen's plans btw for StringUtils. Hen On Wed, 16 Jul 2003, Stephen Colebourne wrote: From: Gary Gregory [EMAIL

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-16 Thread Henri Yandell
On Thu, 17 Jul 2003, Stephen Colebourne wrote: Changes made. Again a sanity check by someone would be good. Hen, you might also want to re-run your diff for the release notes when we are ready, as I'm sure its not completely accurate any more. Will do once we get these bits all dealt with.

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Gary Gregory
: __matthewHawthorne [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 08:26 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having both is/isNot methods is convenient, but I also find it slightly confusing

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Gary Gregory
: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having both is/isNot methods is convenient, but I also find it slightly confusing, and it adds more code to maintain. However, as long as they conform to the standard of: boolean isNotEmpty(String

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread scolebourne
that does! ;-) Gary -Original Message- From: __matthewHawthorne [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 08:26 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Todd Jonker
Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having both is/isNot methods is convenient, but I also find it slightly confusing, and it adds more code to maintain. However, as long as they conform to the standard of: boolean

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Hope, Matthew
without introducing new (inevitablly) non-standard terms. Matt -Original Message- From: Todd Jonker [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 18:20 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread __matthewHawthorne
: Tuesday, July 15, 2003 08:26 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having both is/isNot methods is convenient, but I also find it slightly confusing, and it adds more

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Henri Yandell
? if (StringUtils.isTrivial(hello)) { } I still can't recall what that does! ;-) Gary -Original Message- From: __matthewHawthorne [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 08:26 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Phil Steitz
An alternative to all of the boolean-valued isXXX, isNotXXX methods might be to introduce an integer-valued classification method to return the rank of a string according to the ordering nullwhitespace only (but positive length) non-trivial. The syntax would be less natural (maybe to the

RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Steven Caswell
, July 15, 2003 08:26 To: Jakarta Commons Developers List Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree that having both is/isNot methods is convenient, but I also find it slightly confusing, and it adds more code to maintain

Re: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces

2003-07-15 Thread Stephen Colebourne
- Original Message - From: Steven Caswell [EMAIL PROTECTED] To: 'Jakarta Commons Developers List' [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:04 AM Subject: RE: [lang] Pre 2.0 - StringUtils.isEmpty(), isNotEmpty() and stri ngsa with somespaces I agree with Henri that a major