RFR: 8001647: In-place methods on Collection/List (original) (raw)
Peter Levart peter.levart at gmail.com
Sat Dec 8 13:27:10 UTC 2012
- Previous message: RFR: 8001647: In-place methods on Collection/List
- Next message: RFR: 8001647: In-place methods on Collection/List
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/08/2012 02:42 AM, Akhil Arora wrote:
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.
Yes!
There's finally a way to sort ArrayList's array in-place. Until now you either had to resort to using arrays or a sub-optimal Collections.sort(List) method.
Regards, Peter
- Previous message: RFR: 8001647: In-place methods on Collection/List
- Next message: RFR: 8001647: In-place methods on Collection/List
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]