java.util
Class ArrayList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- Direct Known Subclasses:
- JTypeDeclaration.DispatcherClassList, JTypeDeclaration.MethodList
- public class ArrayList
- extends AbstractList
- implements List, RandomAccess, Cloneable, Serializable
size
private int size
elementData
private transient Object[] elementData
serialVersionUID
private static final long serialVersionUID
ArrayList
public ArrayList()
ArrayList
public ArrayList(int)
ArrayList
public ArrayList(Collection)
size
public int size()
- Specified by:
size in interface List
clear
public void clear()
- Specified by:
clear in interface List- Overrides:
clear in class AbstractList
trimToSize
public void trimToSize()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface List- Overrides:
isEmpty in class AbstractCollection
RangeCheck
private void RangeCheck(int)
ensureCapacity
public void ensureCapacity(int)
removeRange
protected void removeRange(int,
int)
- Overrides:
removeRange in class AbstractList
readObject
private void readObject(ObjectInputStream)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
writeObject
private void writeObject(ObjectOutputStream)
throws IOException
- Throws:
IOException
clone
public Object clone()
- Overrides:
clone in class Object
toArray
public Object[] toArray()
- Specified by:
toArray in interface List- Overrides:
toArray in class AbstractCollection
get
public Object get(int)
- Specified by:
get in interface List
remove
public Object remove(int)
- Specified by:
remove in interface List- Overrides:
remove in class AbstractList
add
public void add(int,
Object)
- Specified by:
add in interface List- Overrides:
add in class AbstractList
indexOf
public int indexOf(Object)
- Specified by:
indexOf in interface List- Overrides:
indexOf in class AbstractList
lastIndexOf
public int lastIndexOf(Object)
- Specified by:
lastIndexOf in interface List- Overrides:
lastIndexOf in class AbstractList
add
public boolean add(Object)
- Specified by:
add in interface List- Overrides:
add in class AbstractList
contains
public boolean contains(Object)
- Specified by:
contains in interface List- Overrides:
contains in class AbstractCollection
addAll
public boolean addAll(int,
Collection)
- Specified by:
addAll in interface List- Overrides:
addAll in class AbstractList
addAll
public boolean addAll(Collection)
- Specified by:
addAll in interface List- Overrides:
addAll in class AbstractCollection
set
public Object set(int,
Object)
- Specified by:
set in interface List- Overrides:
set in class AbstractList
toArray
public Object[] toArray(Object[])
- Specified by:
toArray in interface List- Overrides:
toArray in class AbstractCollection
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.