Package java.util

Abstract Class AbstractList

extends AbstractCollectionObject
implements List, Collection

Basic implementation of the List interface for random access (such as array). For sequential access (such as a linked list) use the class AbstractSequentialList.

To implement an unmodifiable list, the programmer needs only to extend this class and provide implementations for the get(int index) and size() methods.

To implement a modifiable list, the programmer must additionally override the set(int index, Object element) If the list is variable-size the programmer must additionally override the add(int index, Object element) and remove(int index) methods.

Unlike the other abstract collection implementations, the programmer does not have to provide an iterator implementation; the iterator and list iterator are implemented by this class, on top the "random access" methods: get(int index), set(int index, Object element), set(int index, Object element), add(int index, Object element) and remove(int index).

Public Constructors

Public Methods

Methods inherited from java.util.AbstractCollection

Methods inherited from java.lang.Object

_INSERT_INHERITED_METHOD_ENTRY_HERE_

_INSERT_FIELDS_ENTRY_HERE_