Got it. Thanks. Roger Whitcomb | Architect, Engineering | [email protected] | Ingres | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA +1 650-587-5596 | fax: +1 650-587-5550
-----Original Message----- From: Greg Brown [mailto:[email protected]] Sent: Monday, August 15, 2011 12:20 PM To: [email protected] Subject: Re: Should Sequence implement Iterable? That's what List is for. A List is a Sequence that is also a Collection, like Map is a Dictionary that is also a Collection. The idea was that you might want to combine collection interfaces, like List + Dictionary, or Map + Sequence, which you couldn't do if they both implement Iterable (since the type parameters might clash). On Aug 15, 2011, at 3:06 PM, Roger L. Whitcomb wrote: > Maybe I am missing something, but wouldn't it make sense if > org.apache.pivot.collections.Sequence implemented Iterable ? That way > you could use the "foreach" construct on Containers that implement > Sequence<Component>.... (for instance). > > > > Roger Whitcomb > > Architect, Engineering > > Ingres Corporation > > [email protected] <mailto:[email protected]> > > > > PHONE +1 650.587.5596 > > FAX +1 650.587.5550 > > > > www.ingres.com <http://www.ingres.com/> > > > > This transmission is confidential and intended solely for the use of the > recipient named above. It may contain confidential, proprietary, or > legally privileged information. If you are not the intended recipient, > you are hereby notified that any unauthorized review, use, disclosure or > distribution is strictly prohibited. If you have received this > transmission in error, please contact the sender by reply e-mail and > delete the original transmission and all copies from your system. > > >
