org.apache.commons.collections

## Interface Unmodifiable

- All Known Implementing Classes:
    UnmodifiableBag, UnmodifiableBidiMap, UnmodifiableBuffer, UnmodifiableCollection, UnmodifiableEntrySet, UnmodifiableIterator, UnmodifiableList, UnmodifiableListIterator, UnmodifiableMap, UnmodifiableMapEntry, UnmodifiableMapIterator, UnmodifiableOrderedBidiMap, UnmodifiableOrderedMap, UnmodifiableOrderedMapIterator, UnmodifiableSet, UnmodifiableSortedBag, UnmodifiableSortedBidiMap, UnmodifiableSortedMap, UnmodifiableSortedSet

      public interface Unmodifiable

  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: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
  Author:
    Stephen Colebourne

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.