[
https://issues.apache.org/jira/browse/LANG-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259408#comment-14259408
]
Benedikt Ritter commented on LANG-883:
--------------------------------------
Hello [~dstewart],
nice patch. I've committed your changes in
[r1648063|http://svn.apache.org/r1648063]. I've changed two things afterwards:
# We add a list of examples in JavaDoc. This makes it easier for users to
understand our APIs
# Enhanced for loop to iterate over the array instead of indexed based
iteration.
Thanks for contributing!
> Add StringUtils.containsAny(CharSequence, CharSequence... ) method
> ------------------------------------------------------------------
>
> Key: LANG-883
> URL: https://issues.apache.org/jira/browse/LANG-883
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Affects Versions: 3.1
> Reporter: Ivan Hristov
> Assignee: Benedikt Ritter
> Priority: Trivial
> Fix For: Review Patch
>
> Attachments: LANG-883.patch
>
>
> Presently there is a: public static boolean containsAny(CharSequence cs,
> char... searchChars). It would be useful to have the: public static boolean
> containsAny(CharSequence cs, CharSequence... searchCharSequences) which will
> return true if any of the searchCharSequences are contained within the cs. If
> you decide to implement it, it would be nice to have an alias method for
> collections, e.g., public static boolean containsAny(CharSequence cs,
> Collection<CharSequence> searchCharSequences)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)