Vector.indexOf
Class Overview | Class Members |
This Package |
All Packages
public final int indexOf( Object elem )
Parameters
- elem
- an object.
Returns
the index of the first occurrence of the argument in this
vector; returns -1 if the object is not found.
Description
Searches for the first occurence of the given argument, testing
for equality using the equals method.
See Also
equals
public final synchronized int indexOf( Object elem,
int index )
Parameters
- elem
- an object.
- index
- the index to start searching from.
Returns
the index of the first occurrence of the object argument in
this vector at position index or later in the
vector; returns -1 if the object is not found.
Description
Searches for the first occurence of the given argument, beginning
the search at index, and testing for equality using
the equals method.
See Also
equals