java.util
Class AbstractList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
All Implemented Interfaces:
Collection, List
Direct Known Subclasses:
AbstractSequentialList, ArrayList

public abstract synchronized class AbstractList
extends AbstractCollection
implements List


Field Summary
protected  int modCount
           
 
Constructor Summary
protected AbstractList()
           
 
Method Summary
 void add(int, Object)
           
 boolean add(Object)
           
 boolean addAll(int, Collection)
           
 void clear()
           
 boolean equals(Object)
           
abstract  Object get(int)
           
 int hashCode()
           
 int indexOf(Object)
           
 Iterator iterator()
           
 int lastIndexOf(Object)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int)
           
 Object remove(int)
           
protected  void removeRange(int, int)
           
 Object set(int, Object)
           
 List subList(int, int)
           
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

modCount

protected transient int modCount
Constructor Detail

AbstractList

protected AbstractList()
Method Detail

add

public boolean add(Object)
Specified by:
add in interface List
Overrides:
add in class AbstractCollection

get

public abstract Object get(int)
Specified by:
get in interface List

set

public Object set(int,
                  Object)
Specified by:
set in interface List

add

public void add(int,
                Object)
Specified by:
add in interface List

remove

public Object remove(int)
Specified by:
remove in interface List

indexOf

public int indexOf(Object)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object)
Specified by:
lastIndexOf in interface List

clear

public void clear()
Specified by:
clear in interface List
Overrides:
clear in class AbstractCollection

addAll

public boolean addAll(int,
                      Collection)
Specified by:
addAll in interface List

iterator

public Iterator iterator()
Specified by:
iterator in interface List
Specified by:
iterator in class AbstractCollection

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int)
Specified by:
listIterator in interface List

subList

public List subList(int,
                    int)
Specified by:
subList in interface List

equals

public boolean equals(Object)
Specified by:
equals in interface List
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface List
Overrides:
hashCode in class Object

removeRange

protected void removeRange(int,
                           int)