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
> 
> roger.whitc...@ingres.com <mailto:roger.whitc...@ingres.com> 
> 
> 
> 
> 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.
> 
> 
> 

Reply via email to