velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barbara Baughman <baugh...@utdallas.edu>
Subject Re: Defining iterator for #foreach
Date Mon, 18 Oct 2004 22:40:41 GMT
I don't reimplement any functions.  I call on the function for the
underlying object.

Barbara Baughman
X2157

On Tue, 19 Oct 2004, Shinobu Kawai wrote:

> Hi Barbara,
>
> > Actually, I was trying to create a class that was immutable, which
> > means I wouldn't want to implement Collection.  If I have the class
> > just implement Iterator would that do it?
> A bit off topic, but would one of the Collections#unmodifiable*
> methods work for you?
>     http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html
> I mean, you wouldn't want to re-implement a fully tested function
> already supplied in java, do you?
>
> Best regards,
> -- Shinobu Kawai
>
> --
> Shinobu Kawai <shinobu.kawai@gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message