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

Perhaps add containsAny() methods?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None

    Description

      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")

      Attachments

        1. LANG-377-test.patch
          3 kB
          Bjorn Townsend

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: