Class Vector

public class Vector
extends AbstractList
implements List, Cloneable, RandomAccess

// Superclass of Stack
Differences include capacity management and range checking.

Capacity There is no speed advantage to pre-allocating array sizes in JavaScript, so this implementation does not include any of the capacity and "growth increment" concepts in the standard Vector class.

Range checking For increased performance, this implementation does not check for index validity.

Constructors

Vector()
Vector(Collection)

Methods

add(int, Object)
add(Object)
addAll(Collection)
addAll(int, Collection)
addElement(Object)
clear()
clone()
contains(Object)
containsAll(Collection)
copyInto(Object[])
elementAt(int)
equals(Object, Object)
equals(Object)
firstElement()
get(int)
hashCode()
indexOf(Object)
indexOf(Object, int)
insertElementAt(Object, int)
isEmpty()
lastElement()
lastIndexOf(Object)
lastIndexOf(Object, int)
remove(int)
remove(Object)
removeAll(Collection)
removeAllElements()
removeElement(Object)
removeElementAt(int)
removeRange(int, int)
retainAll(Collection)
set(int, Object)
setElementAt(Object, int)
setSize(int)
size()
toArray()
toString()