RFR: 8001647: In-place methods on Collection/List (original) (raw)

Akhil Arora akhil.arora at oracle.com
Sat Dec 8 01:42:28 UTC 2012


As part of the Library Lambdafication, this patch adds the following default methods to Collections -

Iterable.forEach(Block) Collection.removeAll(Predicate) List.sort(Comparator) List.replaceAll(UnaryOperator)

It also provides more efficient implementations of these methods for ArrayList, Vector and CopyOnWriteArrayList. Please review.

http://cr.openjdk.java.net/~akhil/8001647.1/webrev/

Thanks to the many people who have already contributed to this patch.



More information about the core-libs-dev mailing list