You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ralph Wagner <ra...@web.de> on 2003/01/29 13:52:55 UTC
[Collections] Enable remove in FilterIterator
At the moment the commons.collections.iterators.FilterIterator does not implement the "remove" method.
The comment says:
* Always throws UnsupportedOperationException as this class
* does look-ahead with its internal iterator.
This is only a problem if the "hasNext" method was already called, for the other cases the remove operation could be implemented.
Ralph
______________________________________________________________________________
Keine Lust, immer Ihre Adressdaten in eine E-Mail zu schreiben? Mit der
vCard ist Schluss damit! Infos - http://freemail.web.de/features/?mc=021153
Re: [Collections] Enable remove in FilterIterator
Posted by Stephen Colebourne <sc...@btopenworld.com>.
Would you be interested in supplying a patch, including the test case?
http://jakarta.apache.org/site/source.html#Patches
Stephen
----- Original Message -----
From: "Ralph Wagner" <ra...@web.de>
To: <co...@jakarta.apache.org>
Sent: Wednesday, January 29, 2003 12:52 PM
Subject: [Collections] Enable remove in FilterIterator
> At the moment the commons.collections.iterators.FilterIterator does not
implement the "remove" method.
> The comment says:
> * Always throws UnsupportedOperationException as this class
> * does look-ahead with its internal iterator.
>
> This is only a problem if the "hasNext" method was already called, for the
other cases the remove operation could be implemented.
>
> Ralph
>
____________________________________________________________________________
__
> Keine Lust, immer Ihre Adressdaten in eine E-Mail zu schreiben? Mit der
> vCard ist Schluss damit! Infos -
http://freemail.web.de/features/?mc=021153
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>