synchronized
boolean
|
add
(E object)
Adds the specified object at the end of this vector.
|
void
|
add
(int location, E object)
Adds the specified object into this vector at the specified location.
|
synchronized
boolean
|
extends E?>
)">addAll
(
Collection
<? extends E> collection)
Adds the objects in the specified collection to the end of this vector.
|
synchronized
boolean
|
extends E?>
)">addAll
(int location,
Collection
<? extends E> collection)
Inserts the objects in the specified collection at the specified location
in this vector.
|
synchronized
void
|
addElement
(E object)
Adds the specified object at the end of this vector.
|
synchronized
int
|
capacity
()
Returns the number of elements this vector can hold without growing.
|
void
|
clear
()
Removes all elements from this vector, leaving it empty.
|
synchronized
Object
|
clone
()
Returns a new vector with the same elements, size, capacity and capacity
increment as this vector.
|
boolean
|
contains
(
Object
object)
Searches this vector for the specified object.
|
synchronized
boolean
|
?>
)">containsAll
(
Collection
<?> collection)
Searches this vector for all objects in the specified collection.
|
synchronized
void
|
copyInto
(
Object[]
elements)
Attempts to copy elements contained by this
Vector
into the
corresponding elements of the supplied
Object
array.
|
synchronized
E
|
elementAt
(int location)
Returns the element at the specified location in this vector.
|
Enumeration
<E>
|
elements
()
Returns an enumeration on the elements of this vector.
|
synchronized
void
|
ensureCapacity
(int minimumCapacity)
Ensures that this vector can hold the specified number of elements
without growing.
|
synchronized
boolean
|
equals
(
Object
object)
Compares the specified object to this vector and returns if they are
equal.
|
synchronized
E
|
firstElement
()
Returns the first element in this vector.
|
E
|
get
(int location)
Returns the element at the specified location in this vector.
|
synchronized
int
|
hashCode
()
Returns an integer hash code for the receiver.
|
synchronized
int
|
indexOf
(
Object
object, int location)
Searches in this vector for the index of the specified object.
|
int
|
indexOf
(
Object
object)
Searches in this vector for the index of the specified object.
|
synchronized
void
|
insertElementAt
(E object, int location)
Inserts the specified object into this vector at the specified location.
|
synchronized
boolean
|
isEmpty
()
Returns if this vector has no elements, a size of zero.
|
synchronized
E
|
lastElement
()
Returns the last element in this vector.
|
synchronized
int
|
lastIndexOf
(
Object
object, int location)
Searches in this vector for the index of the specified object.
|
synchronized
int
|
lastIndexOf
(
Object
object)
Searches in this vector for the index of the specified object.
|
synchronized
E
|
remove
(int location)
Removes the object at the specified location from this vector.
|
boolean
|
remove
(
Object
object)
Removes the first occurrence, starting at the beginning and moving
towards the end, of the specified object from this vector.
|
synchronized
boolean
|
?>
)">removeAll
(
Collection
<?> collection)
Removes all occurrences in this vector of each object in the specified
Collection.
|
synchronized
void
|
removeAllElements
()
Removes all elements from this vector, leaving the size zero and the
capacity unchanged.
|
synchronized
boolean
|
removeElement
(
Object
object)
Removes the first occurrence, starting at the beginning and moving
towards the end, of the specified object from this vector.
|
synchronized
void
|
removeElementAt
(int location)
Removes the element found at index position
location
from
this
Vector
.
|
void
|
removeRange
(int start, int end)
Removes the objects in the specified range from the start to the, but not
including, end index.
|
synchronized
boolean
|
?>
)">retainAll
(
Collection
<?> collection)
Removes all objects from this vector that are not contained in the
specified collection.
|
synchronized
E
|
set
(int location, E object)
Replaces the element at the specified location in this vector with the
specified object.
|
synchronized
void
|
setElementAt
(E object, int location)
Replaces the element at the specified location in this vector with the
specified object.
|
synchronized
void
|
setSize
(int length)
Sets the size of this vector to the specified size.
|
synchronized
int
|
size
()
Returns the number of elements in this vector.
|
synchronized
List
<E>
|
subList
(int start, int end)
Returns a List of the specified portion of this vector from the start
index to one less than the end index.
|
synchronized
<T>
T[]
|
toArray
(T[] contents)
Returns an array containing all elements contained in this vector.
|
synchronized
Object[]
|
toArray
()
Returns a new array containing all elements contained in this vector.
|
synchronized
String
|
toString
()
Returns the string representation of this vector.
|
synchronized
void
|
trimToSize
()
Sets the capacity of this vector to be the same as the size.
|