eclipse / eclipse-collections

Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.

Home Page:http://www.eclipse.org/collections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Override Java 8 default method Map#forEach

rzrobin213 opened this issue · comments

As referenced in #500, the default Map implementation of the forEach method is not overridden in the EC Map implementations.

This can be delegated to the MapIterable#forEachKeyValue which would give a performance benefit as there is no call to entrySet and there is no need to generate Map.Entry objects. This is referenced in this StackOverflow question.

I would like to work on this issue if possible.

Thanks for volunteering @rzrobin213 ! I have assigned this issue to you.