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
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
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
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
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
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
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.
: __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
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
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
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
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
: 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
?
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
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
, 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
- 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
17 matches
Mail list logo