mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
flesh out some classpath classes
This commit is contained in:
@ -15,6 +15,10 @@ public class Vector<T> implements List<T> {
|
||||
return list.size();
|
||||
}
|
||||
|
||||
public synchronized boolean contains(T element) {
|
||||
return list.contains(element);
|
||||
}
|
||||
|
||||
public synchronized boolean add(T element) {
|
||||
return list.add(element);
|
||||
}
|
||||
@ -43,6 +47,12 @@ public class Vector<T> implements List<T> {
|
||||
list.clear();
|
||||
}
|
||||
|
||||
public synchronized void copyInto(Object[] array) {
|
||||
for (int i = 0; i < size(); ++i) {
|
||||
array[i] = list.get(i);
|
||||
}
|
||||
}
|
||||
|
||||
public Iterator<T> iterator() {
|
||||
return new Collections.ArrayListIterator(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user