API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. AbstractList View Source
Author(s)
Josh Bloch
Neal Gafter
Since
1.2
Version
1.52, 06/16/06
Serial
Hierarchy
 Object
      AbstractCollection
          AbstractList
Implements
 List
Subclasses
Description
publicabstract abstract class AbstractList
  This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array).
See also:   
Constructors
protected AbstractList ()
  Sole constructor.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Overrides AbstractCollection] [Specified in List]
  Appends the specified element to the end of this list (optional operation).
public void add (int index, E element) [Specified in List]
  Inserts the specified element at the specified position in this list (optional operation).
public boolean addAll (Collection<Object> c) [Inherited From AbstractCollection]
  Adds all of the elements in the specified collection to this collection (optional operation).
public boolean addAll (int index, Collection<Object> c) [Specified in List]
  Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
public void clear () [Overrides AbstractCollection] [Specified in List]
  Removes all of the elements from this list (optional operation).
public boolean contains (Object o) [Inherited From AbstractCollection]
  Returns true if this collection contains the specified element.
public boolean containsAll (Collection<Object> c) [Inherited From AbstractCollection]
  Returns true if this collection contains all of the elements in the specified collection.
public boolean equals (Object o) [Specified in List]
  Compares the specified object with this list for equality.
publicabstract E get (int index) [Specified in List]
  Returns the element at the specified position in this list.
public int hashCode () [Specified in List]
  Returns the hash code value for this list.
public int indexOf (Object o) [Specified in List]
  Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
public boolean isEmpty () [Inherited From AbstractCollection]
  Returns true if this collection contains no elements.
public Iterator< E> iterator () [Specified in List]
  Returns an iterator over the elements in this list in proper sequence.
public int lastIndexOf (Object o) [Specified in List]
  Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
public ListIterator< E> listIterator () [Specified in List]
  Returns a list iterator over the elements in this list (in proper sequence).
public ListIterator< E> listIterator (int index) [Specified in List]
  Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.
public E remove (int index) [Specified in List]
  Removes the element at the specified position in this list (optional operation).
public boolean remove (Object o) [Inherited From AbstractCollection]
  Removes a single instance of the specified element from this collection, if it is present (optional operation).
public boolean removeAll (Collection<Object> c) [Inherited From AbstractCollection]
  Removes all of this collection's elements that are also contained in the specified collection (optional operation).
protected void removeRange (int fromIndex, int toIndex)
  Removes from this list all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive.
public boolean retainAll (Collection<Object> c) [Inherited From AbstractCollection]
  Retains only the elements in this collection that are contained in the specified collection (optional operation).
public E set (int index, E element) [Specified in List]
  Replaces the element at the specified position in this list with the specified element (optional operation).
publicabstract int size () [Inherited From AbstractCollection]
public List< E> subList (int fromIndex, int toIndex) [Specified in List]
  Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
public Object toArray () [Inherited From AbstractCollection]
  Returns an array containing all of the elements in this collection.
public T toArray ( T a) [Inherited From AbstractCollection]
  Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.
public String toString () [Inherited From AbstractCollection]
  Returns a string representation of this collection.
Fields
Hide/Show inherited fields
protectedtransient int modCount
  The number of times this list has been structurally modified.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar