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

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: