commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Fischer" <ple...@snafu.de>
Subject Re: [collections] Would like to contribute my RangeIterator
Date Tue, 30 Apr 2002 06:10:30 GMT
Yes, it does. To use the sublist method of the List interface, you
have to know the left and right index - if I am not mistaken.

My RangeIterator accecpts two predicates: one for the left border and
another one for the right border. So the RangeIterator will return
only objects, which fits into the following condition: LeftBorder <=
object <= rightBorder.

I hope, that I didn't reinvent the wheel.

Bye


Oliver

----- Original Message -----
From: "Tim Moore" <tmoore@blackboard.com>
To: "Jakarta Commons Developers List" <commons-dev@jakarta.apache.org>
Sent: Monday, April 29, 2002 5:21 PM
Subject: RE: [collections] Would like to contribute my RangeIterator


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:plexus@snafu.de]
> 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:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>





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


Mime
View raw message