java.lang.Object | ||||
↳ | org.apache.commons.collections.collection.AbstractCollectionDecorator | |||
↳ | org.apache.commons.collections.list.AbstractListDecorator | |||
↳ | org.apache.commons.collections.list.AbstractSerializableListDecorator | |||
↳ | org.apache.commons.collections.list.FixedSizeList |
Decorates another List
to fix the size preventing add/remove.
The add, remove, clear and retain operations are unsupported. The set method is allowed (as it doesn't change the list size).
This class is Serializable from Commons Collections 3.1.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.collections.collection.AbstractCollectionDecorator
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that wraps (not copies).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Factory method to create a fixed size list.
| |||||||||||
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.list.AbstractListDecorator
| |||||||||||
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
java.util.List
| |||||||||||
From interface
org.apache.commons.collections.BoundedCollection
|
Constructor that wraps (not copies).
list | the list to decorate, must not be null |
---|
IllegalArgumentException | if list is null |
---|
Factory method to create a fixed size list.
list | the list to decorate, must not be null |
---|
IllegalArgumentException | if list 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).