Could you prefix your messages with the commons component you're talking
about please. For example [collections] - which I'm guessing this is.

Thanks

Niall
----- Original Message ----- 
From: "Andriy Palamarchuk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 28, 2004 2:43 PM
Subject: TransformedList should return transformed iterator?


> Currently TransformedList does not redefine iterator()
> method and as result returns iterator for original,
> not transformed objects. The same problem probably
> exists for other Transformed* collections.
>
> Shouldn't this class return TransformedListIterator
> instead with following change:
>
> @@ -115,6 +116,10 @@
>
>      public ListIterator listIterator(int i) {
>          return new
> TransformedListIterator(getList().listIterator(i));
> +    }
> +
> +    public Iterator iterator() {
> +        return listIterator();
>      }
>
>      public Object set(int index, Object object) {
>
> Regards,
> Andriy
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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

Reply via email to