THE PACKAGE JAVA.UTIL
java.util.Vector
21.11
21.11.24
public final void copyInto(Object anArray[])
throws IndexOutOfBoundsException
All the items in this
Vector
are copied into the array
anArray
. The item at index
k
in this
Vector
is copied into component
k
of
anArray
. If the length of
anArray
is smaller than the size of this
Vector
, an
IndexOutOfBoundsException
is
thrown.
21.11.25
public final Enumeration elements()
An
Enumeration
( 21.1) is returned that will generate all items in this
Vector
.
The first item generated is the item at index
0
, then the item at index
1
, and so on.
21.11.26
public final boolean contains(Object elem)
The result is
true
if and only if some item in this
Vector
is the same as
elem
, as
determined by the
equals
method ( 20.1.3).
21.11.27
public final int indexOf(Object elem)
If an item equal to
elem
is in this
Vector
, then the index of the first such occur
rence is returned, that is, the smallest value
k
such that:
elem.equals(elementData[k])
is
true
. If no such item occurs in this
Vector
, then
1
is returned.
21.11.28
public final int indexOf(Object elem, int index)
throws IndexOutOfBoundsException
If an item equal to
elem
is in this
Vector
at position
k
or higher, then the index of
the first such occurrence is returned, that is, the smallest value
k
such that:
elem.equals(elementData[k]) && (k >= index)
is
true
. If no such item occurs in this
Vector
, then
1
is returned.
659
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved