|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Vector
public class Vector
A dynamic array.
Constructor Summary | |
---|---|
Vector()
|
|
Vector(int initialCapacity)
|
|
Vector(int initialCapacity,
int capacityIncrement)
|
Method Summary | |
---|---|
void |
addElement(Object aObj)
|
int |
capacity()
|
void |
clear()
|
Object |
elementAt(int aIndex)
|
Enumeration |
elements()
Returns a convenient Enumaration object to cycle through elements in Vector. |
void |
ensureCapacity(int minCapacity)
|
boolean |
equals(Object aObj)
|
int |
indexOf(Object aObj)
|
int |
indexOf(Object aObj,
int aIndex)
|
void |
insertElementAt(Object aObj,
int aIndex)
|
boolean |
isEmpty()
|
int |
lastIndexOf(Object anObject)
delivers the index of the last occurrence of the object |
int |
lastIndexOf(Object anObject,
int anIndex)
delivers the index of the last occurrence of the object starting from some index |
void |
removeAllElements()
|
boolean |
removeElement(Object aObj)
|
void |
removeElementAt(int aIndex)
|
void |
setElementAt(Object aObj,
int aIndex)
|
void |
setSize(int aSize)
|
int |
size()
|
Object[] |
toArray()
|
void |
trimToSize()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vector(int initialCapacity, int capacityIncrement)
public Vector(int initialCapacity)
public Vector()
Method Detail |
---|
public Enumeration elements()
public void addElement(Object aObj)
public int capacity()
public void clear()
public Object elementAt(int aIndex)
public void ensureCapacity(int minCapacity)
public boolean equals(Object aObj)
equals
in class Object
public int indexOf(Object aObj)
public int indexOf(Object aObj, int aIndex)
public void insertElementAt(Object aObj, int aIndex)
public boolean isEmpty()
public int lastIndexOf(Object anObject)
anObject
- the object
public int lastIndexOf(Object anObject, int anIndex) throws ArrayIndexOutOfBoundsException
anObject
- the objectanIndex
- the starting index
ArrayIndexOutOfBoundsException
public void removeAllElements()
public boolean removeElement(Object aObj)
public void removeElementAt(int aIndex)
public void setElementAt(Object aObj, int aIndex)
public void setSize(int aSize)
public int size()
public Object[] toArray()
public void trimToSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |