JDK-8001647 : default methods for Collections - forEach, removeIf, replaceAll, sort
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-26
  • Updated: 2017-05-17
  • Resolved: 2013-04-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b89Fixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
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.
Comments
fix available in lambda repo
08-04-2013