java.lang.Object | |||
↳ | org.apache.commons.collections.collection.AbstractCollectionDecorator | ||
↳ | org.apache.commons.collections.collection.AbstractSerializableCollectionDecorator | ||
↳ | org.apache.commons.collections.collection.UnmodifiableCollection |
Decorates another Collection
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.collection.AbstractCollectionDecorator
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method to create an unmodifiable collection.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.collection.AbstractCollectionDecorator
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
From interface
java.util.Collection
|
Factory method to create an unmodifiable collection.
If the collection passed in is already unmodifiable, it is returned.
coll | the collection to decorate, must not be null |
---|
IllegalArgumentException | if collection is null |
---|