Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-235

Missing static int ListUtils.indexOf(List,Predicate) method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 4.0-alpha1, 4.0
    • None
    • None

    Description

      Similar to this method on CollectionUtils:

      public static Object find(Collection c,Predicate p)

      there should be the following method on ListUtils:

      public static int indexOf(List l,Predicate p)

      which returns the index of the first Object in the List where the Predicate evaluates true.

      Attachments

        1. COLLECTIONS-235.patch
          3 kB
          Dave Meikle

        Activity

          People

            Unassigned Unassigned
            negge Nathan Egge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: