As a user I agree with the benefits of both proposals (can't decide which I
prefer yet). When I saw the initial proposal I wasn't happy either but could
not come up with a 'complete' solution either.
one point on the first though, I would find in my code that the vast
majority of my use cases would be
if (! isTrivial(s)) {
// do something that assumes a non null / length() > 0 string
}
I dislike overuse of (! someMethod()), especially since I started doing code
maintenace with the help of back browse facilities which find method usage
(rather than more fallible regexp). I would therefore like isNonTrivial(s)
to be provided.
Matt
> -----Original Message-----
> From: Todd Jonker [mailto:[EMAIL PROTECTED]
> Sent: 15 July 2003 02:39
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [lang] Pre 2.0 - StringUtils.isEmpty(),
> isNotEmpty() and stringsa with somespaces
<snip>
> I tend to dislike thinks like isNotBlank since it increases
> the number of
> methods one needs to wade through, but adds no new semantic
> expressiveness.
> Also, the methods above would lead to isNotTrivial, where
> isNonTrivial is much more natural
<snip>
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]