Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8184705

add List.indexOfMatch(Predicate)

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      The List.indexOf(obj) method finds the index of the first element of the list that is equal to the argument. There should be a variation that takes a predicate and finds the index of the first element of the list that matches the predicate.

      There is also a List.lastIndexOf(obj), so similarly there should be a List.lastIndexOfMatch(Predicate).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            smarks Stuart Marks
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: