|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.ArrayList
public class ArrayList
An expandable array.
Field Summary | |
---|---|
protected int |
capacityIncrement
|
protected int |
elementCount
|
protected Object[] |
elementData
|
Constructor Summary | |
---|---|
ArrayList()
|
|
ArrayList(int initialCapacity)
|
|
ArrayList(Object[] elements)
|
Method Summary | |
---|---|
void |
add(int index,
Object element)
|
void |
add(Object o)
|
void |
addAll(int index,
Object[] elements)
|
void |
addAll(Object[] elements)
|
void |
clear()
|
boolean |
contains(Object o)
|
Object |
get(int index)
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
int |
lastIndexOf(Object o)
|
Object |
remove(int index)
|
Object |
set(int index,
Object element)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Field Detail |
---|
protected Object[] elementData
protected int capacityIncrement
protected int elementCount
Constructor Detail |
---|
public ArrayList(int initialCapacity)
public ArrayList(Object[] elements)
public ArrayList()
Method Detail |
---|
public void add(int index, Object element)
public void add(Object o)
public void addAll(Object[] elements)
public void addAll(int index, Object[] elements)
public void clear()
public boolean contains(Object o)
public Object get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public boolean isEmpty()
public Object remove(int index)
public Object set(int index, Object element)
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |