JML

java.util
Class AbstractList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
All Implemented Interfaces:
Collection, List
Direct Known Subclasses:
AbstractSequentialList, ArrayList, Vector

public abstract class AbstractList
extends AbstractCollection
implements List


Nested Class Summary
(package private) static class AbstractList.1
           
private  class AbstractList.Itr
           
private  class AbstractList.ListItr
           
 
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
clone, finalize, getClass, notify, notifyAll, wait, 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

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)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.