[
https://issues.apache.org/jira/browse/LANG-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543184
]
Paul Benedict commented on LANG-377:
------------------------------------
Ironically, Lang has alot of inverse methods in StringUtils: isNull, isNotNull,
isBlank, etc. I am an advocate for making methods using positive language:
containsAny vs containsNone, etc. Alot of people have problems thinking in
double negatives -- not contains none -- but this is a philosophical point.
> Perhaps add containsAny() methods?
> ----------------------------------
>
> Key: LANG-377
> URL: https://issues.apache.org/jira/browse/LANG-377
> Project: Commons Lang
> Issue Type: Improvement
> Reporter: Sebb
> Priority: Minor
> Fix For: 2.4
>
>
> Might be useful to have containsAny(String, char[]) and containsAny(String,
> String) methods.
> They would be the inverse of containsNone() (so are not strictly necessary),
> but to my eyes
> containsAny(str,"abc")
> looks nicer and is easier to read than the double negative
> !containsNone(str,"abc")
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.