Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001632 Umbrella: Library Lambdafication
  3. JDK-8001647

default methods for Collections - forEach, removeIf, replaceAll, sort

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None

      The following methods should be added to Collection/List:

      Iterable.forEach(Block<T>). Default in Iterable, override in ArrayList, Vector, and COWAL.
      Collection.removeAll(Predicate<T>). Better implementations in ArrayList, Vector and COWAL.
      List.sort(Comparator). Default calls Collections.sort; Better implementations in ArrayList, Vector and COWAL.
      List.replaceAll(UnaryOperator<T>). Better version in ArrayList, Vector and COWAL.

            akhil Akhil Arora (Inactive)
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: