Right, I guess an unstated motivation for my doubts were that for
non-lists you're not really guaranteed an order for iteration.  I guess
that doesn't necessarily make a bounded iterator entirely useless, but I
would tend to think that it would reduce its utility.  And if you want
to treat a non-list collection or map as if it were a list, there are
ways to do that, too.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Morgan Delagrange [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 29, 2002 11:25 AM
> To: Jakarta Commons Developers List
> Subject: RE: [collections] Would like to contribute my RangeIterator
> 
> 
> Well, presumably it's an iterator wrapper, not a list 
> operation, right Oliver?  So it would be useful for 
> interfaces that only provide access through iterators.
> 
> It sounds a bit specialized to me, especially since it
> seems to assume that the iterations are returned in
> order.  Could you provide a few use cases?
> 
> - Morgan
> 
> --- Tim Moore <[EMAIL PROTECTED]> wrote:
> > Does it do anything more than list.sublist(left, right).iterator()?
> > 
> > --
> > Tim Moore / Blackboard Inc. / Software Engineer
> > 1899 L Street, NW / 5th Floor / Washington, DC 20036
> > Phone 202-463-4860 ext. 258 / Fax 202-463-4863
> > 
> > 
> > > -----Original Message-----
> > > From: Oliver Fischer [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, April 27, 2002 3:27 PM
> > > To: commons-dev
> > > Subject: [collections] Would like to contribute my
> > RangeIterator
> > > 
> > > 
> > > Hello,
> > > 
> > > I wrote some time ago a RangeIterator, which
> > allows you to
> > > set a right and left border criteria, so that only
> > objects
> > > within this border are processed. Now I would like
> > to
> > > contribute it to the collections package. Would it
> > be accepted?
> > > 
> > > Bye
> > > 
> > > Oliver
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to