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 <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]