Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-883

Add StringUtils.containsAny(CharSequence, CharSequence... ) method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1
    • 3.4
    • lang.*
    • None

    Description

      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)

      Attachments

        1. LANG-883.patch
          3 kB
          Daniel Stewart

        Issue Links

          Activity

            People

              britter Benedikt Ritter
              ihristov Ivan Hristov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: