Re: Collection Design FAQ

2016-09-30 Thread Stuart Marks
quot; method in Collection to apply a given method ("upcall") to all the elements of the Collection? Why didn't you provide a "Predicate" interface, and related methods (e.g., a method to find the first element in the Collection satisfying the predicate)? Hi Kasper, The c

Re: Collection Design FAQ

2016-09-22 Thread Remi Forax
On September 23, 2016 8:13:36 AM GMT+02:00, Kasper Nielsen wrote: >Hi, > >I accidently bumped into an old friend today >https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html >There are couple of questions that might need an update after Java 8. >Such >as > >Why don'

Collection Design FAQ

2016-09-22 Thread Kasper Nielsen
Hi, I accidently bumped into an old friend today https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html There are couple of questions that might need an update after Java 8. Such as Why don't you provide an "apply" method in Collection to apply a given method ("upcall")