Oops, I meant to say: 

I think it [the remove method] would need to use the remove
method on the iterator returned by the Collection.

Jonathan

--- Jonathan Carlson <[EMAIL PROTECTED]> wrote:
> I'm very sorry to have taken so long to reply.  I don't
> check this box very often and I am deep into development
> so
> checking it even less.  I'll check back tomorrow for a
> reply.
> 
> I can add a remove method and test cases unless it's
> easier
> for you to just add it.  I think it would just use the
> remove method on the Collection.  If the iterator
> returned
> by the Collection implementer doesn't support it then
> this
> won't either.
> 
> As for a use-case, I am using it for a displaying a
> number
> of our banner ads on our e-commerce site.  The
> round-robin
> task dispatcher mentioned earlier is another one.
> 
> Jonathan Carlson
> 
> 
> 
> --- Stephen Colebourne <[EMAIL PROTECTED]> wrote:
> > [Jonathan, I have sent back to commons-dev mailing list
> > which is the
> > appropriate place for design/code discussions.]
> > 
> > I took a quick look, and I believe that the code in the
> > zip will work.
> > However, my main concern is why this would be needed.
> Is
> > there a use case
> > for an iterator that never ends?
> > 
> > I would also like to see the remove method implemented.
> > It should be
> > possible.
> > 
> > Stephen
> > 
> > ----- Original Message -----
> > From: "Jonathan Carlson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 18, 2002 3:53 PM
> > Subject: LoopingIterator
> > 
> > 
> > > Hi Stephen,
> > >
> > > Thanks for your work on the IteratorUtils.  I thought
> > this
> > > might be a good addition if it hasn't been added
> > already.
> > > It's an iterator that loops continually. 
> > Unfortunately, it
> > > can't just decorate another iterator but has to wrap
> a
> > > collection due to the fact that iterators cannot be
> > reset
> > > to the beginning of the collection.
> > >
> > > Included is a jUnit test case that shows it works "as
> > > advertised".  Hope this helps.
> > >
> > > Jonathan Carlson
> > > Minneapolis, Minnesota
> > >
> > >
> > > =====
> > > Jonathan Carlson
> > > [EMAIL PROTECTED]
> > > Minneapolis, Minnesota
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Faith Hill - Exclusive Performances, Videos & More
> > > http://faith.yahoo.com
> > 
> 
> > ATTACHMENT part 2 application/x-zip-compressed
> name=LoopingIterator.zip
> 
> 
> 
> =====
> Jonathan Carlson
> [EMAIL PROTECTED]
> Minneapolis, Minnesota
> 
> __________________________________________________
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> 
> --
> To unsubscribe, e-mail:  
> <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:commons-dev-help@;jakarta.apache.org>
> 


=====
Jonathan Carlson
[EMAIL PROTECTED]
Minneapolis, Minnesota

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to