add indexOf and lastIndexOf methods to java.util.List

This commit is contained in:
Joel Dice
2009-08-04 17:58:31 -06:00
parent 0a7f94abfe
commit 590238bbfc
5 changed files with 49 additions and 5 deletions

View File

@ -93,11 +93,11 @@ public class Vector<T> extends AbstractList<T> {
list.clear();
}
public synchronized int indexOf(T element) {
public synchronized int indexOf(Object element) {
return list.indexOf(element);
}
public synchronized int lastIndexOf(T element) {
public synchronized int lastIndexOf(Object element) {
return list.lastIndexOf(element);
}