mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add indexOf and lastIndexOf methods to java.util.List
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user