Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » list » [javadoc | source]
org.apache.commons.collections.list
public class: FixedSizeList [javadoc | source]
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

All Implemented Interfaces:
    BoundedCollection, Serializable, List, Collection

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.

Nested Class Summary:
static class  FixedSizeList.FixedSizeListIterator  List iterator that only permits changes via set() 
Fields inherited from org.apache.commons.collections.collection.AbstractCollectionDecorator:
collection
Constructor:
 protected FixedSizeList(List list) 
    Constructor that wraps (not copies).
    Parameters:
    list - the list to decorate, must not be null
    Throws:
    IllegalArgumentException - if list is null
Method from org.apache.commons.collections.list.FixedSizeList Summary:
add,   add,   addAll,   addAll,   clear,   decorate,   get,   indexOf,   isFull,   iterator,   lastIndexOf,   listIterator,   listIterator,   maxSize,   remove,   remove,   removeAll,   retainAll,   set,   subList
Methods from org.apache.commons.collections.list.AbstractListDecorator:
add,   addAll,   get,   getList,   indexOf,   lastIndexOf,   listIterator,   listIterator,   remove,   set,   subList
Methods from org.apache.commons.collections.collection.AbstractCollectionDecorator:
add,   addAll,   clear,   contains,   containsAll,   equals,   getCollection,   hashCode,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.list.FixedSizeList Detail:
 public boolean add(Object object) 
 public  void add(int index,
    Object object) 
 public boolean addAll(Collection coll) 
 public boolean addAll(int index,
    Collection coll) 
 public  void clear() 
 public static List decorate(List list) 
    Factory method to create a fixed size list.
 public Object get(int index) 
 public int indexOf(Object object) 
 public boolean isFull() 
 public Iterator iterator() 
 public int lastIndexOf(Object object) 
 public ListIterator listIterator() 
 public ListIterator listIterator(int index) 
 public int maxSize() 
 public Object remove(int index) 
 public boolean remove(Object object) 
 public boolean removeAll(Collection coll) 
 public boolean retainAll(Collection coll) 
 public Object set(int index,
    Object object) 
 public List subList(int fromIndex,
    int toIndex)