Design for collections upgrades

Sam Pullara sam at sampullara.com
Tue Mar 8 13:41:02 PST 2011


I
On Mar 8, 2011, at 1:34 PM, Rémi Forax wrote:

> On 03/08/2011 10:16 PM, Neal Gafter wrote:
>> On Tue, Mar 8, 2011 at 9:23 AM, Brian Goetz<brian.goetz at oracle.com>  wrote:

>> 2.  Serial / Lazy.  Here, the primary abstraction is Stream (name to be
>>> chosen later, Remi used "lazy" in his example.)
>> 
>> The JDK already has two such streaming interfaces: Iterable<T>  and
>> Collection<T>.
> 
> Not sure we can reuse them, I have to think about that.


Iterable is what I use with Google Collections + anonymous classes and it works reasonably well. Extension methods should help fix the warts on iterator() as well.

Sam




More information about the lambda-dev mailing list