java.lang.Object | |||
↳ | org.apache.commons.collections.collection.AbstractCollectionDecorator | ||
↳ | org.apache.commons.collections.collection.AbstractSerializableCollectionDecorator | ||
↳ | org.apache.commons.collections.collection.UnmodifiableBoundedCollection |
UnmodifiableBoundedCollection
decorates another
BoundedCollection
to ensure it can't be altered.
If a BoundedCollection is first wrapped in some other collection decorator, such as synchronized or predicated, the BoundedCollection methods are no longer accessible. The factory on this class will attempt to retrieve the bounded nature by examining the package scope variables.
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 bounded collection.
| |||||||||||
Factory method to create an unmodifiable bounded collection.
| |||||||||||
Returns true if this collection is full and no new elements can be added.
| |||||||||||
Gets the maximum size of the collection (the bound).
| |||||||||||
[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
| |||||||||||
From interface
org.apache.commons.collections.BoundedCollection
|
Factory method to create an unmodifiable bounded collection.
coll | the BoundedCollection to decorate, must not be null |
---|
IllegalArgumentException | if bag is null |
---|
Factory method to create an unmodifiable bounded collection.
This method is capable of drilling down through up to 1000 other decorators to find a suitable BoundedCollection.
coll | the BoundedCollection to decorate, must not be null |
---|
IllegalArgumentException | if bag is null |
---|
Returns true if this collection is full and no new elements can be added.
true
if the collection is full
Gets the maximum size of the collection (the bound).