implement a few more classpath methods, including Collection.addAll and Collection.toArray

This commit is contained in:
Joel Dice
2008-02-28 11:37:10 -07:00
parent c810eb36d8
commit 9d76d6a04e
11 changed files with 109 additions and 35 deletions

View File

@ -44,6 +44,10 @@ public class Vector<T> implements List<T> {
return list.add(element);
}
public synchronized boolean addAll(Collection<? extends T> collection) {
return list.addAll(collection);
}
public void addElement(T element) {
add(element);
}