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

Perhaps add containsAny() methods?

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment