| Marker interface for collections, maps and iterators that are unmodifiable.
This interface enables testing such as:
if (coll instanceof Unmodifiable) {
coll = new ArrayList(coll);
}
// now we know coll is modifiable
Of course all this only works if you use the Unmodifiable classes defined
in this library. If you use the JDK unmodifiable class via java util Collections
then the interface won't be there.
since: Commons Collections 3.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Stephen Colebourne |