Le 19/11/2010 16:49, John Platts a écrit :
Here are improvements that I really want to see to Java Collection APIs:

[...]

- Addition of methods that iterates through the collection and invokes a 
callback. This is useful in cases where the callback object can be 
pre-allocated, since iteration using a java.util.Iterator object usually 
requires an iterator to be allocated each time an iteration takes place.
                                        

This one is on the task list of the lambda JSR, the callback will be expressed as a lambda.

Rémi

Reply via email to