Could your utility class fit into org.apache.pivot.collections or 
org.apache.pivot.util as adapters of some kind?

Roger Whitcomb | Architect, Engineering | roger.whitc...@ingres.com | Ingres | 
500 Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA  +1 
650-587-5596 | fax: +1 650-587-5550

-----Original Message-----
From: Chris Bartlett [mailto:cbartlet...@gmail.com] 
Sent: Monday, August 15, 2011 12:42 PM
To: dev@pivot.apache.org
Subject: Re: Should Sequence implement Iterable?

Sometimes I can't find threads even when I know one exists, so no
problems on that count.

FWIW I have a utility class related to the Pivot collections package
that has static methods which return an Iterable<T> or Iterator<T> for
a supplied Sequence<T>.  It is clunky but eases the pain.

On 16 August 2011 02:28, Roger L. Whitcomb <roger.whitc...@ingres.com> wrote:
> Thanks.  Should have looked a little further before firing off the email....
>
> Roger Whitcomb | Architect, Engineering | roger.whitc...@ingres.com | Ingres 
> | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA  +1 
> 650-587-5596 | fax: +1 650-587-5550
>
> -----Original Message-----
> From: Chris Bartlett [mailto:cbartlet...@gmail.com]
> Sent: Monday, August 15, 2011 12:18 PM
> To: dev@pivot.apache.org
> Subject: Re: Should Sequence implement Iterable?
>
> Here is a previous thread on the same subject
> http://apache-pivot-users.399431.n3.nabble.com/let-Sequence-lt-T-gt-extend-Iterable-lt-T-gt-td729282.html
>
> On 16 August 2011 02:06, Roger L. Whitcomb <roger.whitc...@ingres.com> 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