Vector.lastIndexOf
Class Overview | Class Members |
This Package |
All Packages
public final int lastIndexOf( Object elem )
Parameters
- elem
- the desired component.
Returns
the index of the last occurrence of the specified object in
this vector; returns -1 if the object is not found.
Description
Returns the index of the last occurrence of the specified object in
this vector.
public final synchronized int lastIndexOf( Object elem,
int index )
Parameters
- elem
- the desired component.
- index
- the index to start searching from.
Returns
the index of the last occurrence of the specified object in this
vector at position less than index in the vector;
-1 if the object is not found.
Description
Searches backwards for the specified object, starting from the
specified index, and returns an index to it.