commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Muthmann (JIRA)" <>
Subject [jira] [Created] (LANG-848) Improve with a CharSequence... version
Date Wed, 31 Oct 2012 14:17:14 GMT
Alexander Muthmann created LANG-848:

             Summary: Improve with a CharSequence... version
                 Key: LANG-848
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
    Affects Versions: 3.1
            Reporter: Alexander Muthmann

Currently it's only possible to compare a single CharSequence per is(Not)Blank/is(Not)Empty

This should be changed to support multiple CharSequences in a single call.

if(StringUtils.isNotBlank(foo) && StringUtils.isNotBlank(bar) && ...)
could be changed to
if(StringUtils.isNotBlank(foo, bar, ...)

As there are two possible ways to combine the results (AND and OR), it'd be necessary to create
multiple methods.

isAnyBlank(CharSequence... cs)
isNoneBlank(CharSequence... cs)
isAnyEmpty(CharSequence... cs)
isNoneEmpty(CharSequence... cs)

I could implement those methods and contribute them via github if there is any interest from
project's side. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message