public class Vector
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object[] |
data |
protected int |
lastElement |
| Modifier and Type | Method and Description |
|---|---|
void |
appendElement(java.lang.Object o) |
int |
capacity()
Returns the current capacity of the vector.
|
java.lang.Object |
clone() |
java.lang.Object |
elementAt(int i)
Returns the element at the specified index.
|
java.util.Enumeration |
elements() |
void |
ensureCapacity(int minIndex) |
boolean |
removeElement(java.lang.Object o) |
void |
setElementAt(java.lang.Object obj,
int i) |
int |
size() |
public void appendElement(java.lang.Object o)
public int capacity()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.Object elementAt(int i)
index - the index of the desired elementjava.lang.ArrayIndexOutOfBoundsException - If an invalid
index was given.public java.util.Enumeration elements()
public void ensureCapacity(int minIndex)
public boolean removeElement(java.lang.Object o)
public void setElementAt(java.lang.Object obj,
int i)
public int size()