Class FixedSizeList<E>

Type Parameters:
E - the type of elements in this collection
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>, BoundedCollection<E>

public class FixedSizeList<E> extends AbstractSerializableListDecorator<E> implements BoundedCollection<E>
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).

NOTE: Modifying the decorated list directly would results in influencing the outcome of method calls on this object. For example, the bounds of this list would reflect a newly added object to the underlying list.

This class is Serializable from Commons Collections 3.1.

See Also: