Like a noob, I missed some things... broke the compilation.

This commit is contained in:
mweaver
2009-04-22 15:24:26 -06:00
parent f68f1e5888
commit 6b89ecd0ee
18 changed files with 34 additions and 30 deletions

View File

@ -97,7 +97,7 @@ public class Collections {
return size() == 0;
}
public boolean contains(T e) {
public boolean contains(Object e) {
synchronized (lock) { return collection.contains(e); }
}
@ -109,8 +109,8 @@ public class Collections {
synchronized (lock) { return this.collection.addAll(collection); }
}
public boolean remove(T e) {
synchronized (lock) { return collection.remove(e); }
public boolean remove(Object e) {
synchronized (lock) { return collection.remove((T)e); }
}
public <T> T[] toArray(T[] array) {
@ -152,7 +152,7 @@ public class Collections {
public Set<java.util.Map.Entry<K, V>> entrySet() {
synchronized (lock) { return new SynchronizedSet<java.util.Map.Entry<K, V>>(lock, map.entrySet()); }
}
public V get(K key) {
public V get(Object key) {
synchronized (lock) { return map.get(key); }
}
public boolean isEmpty() {
@ -167,7 +167,7 @@ public class Collections {
public void putAll(Map<? extends K, ? extends V> elts) {
synchronized (lock) { map.putAll(elts); }
}
public V remove(K key) {
public V remove(Object key) {
synchronized (lock) { return map.remove(key); }
}
public int size() {
@ -283,7 +283,7 @@ public class Collections {
throw new UnsupportedOperationException("not supported");
}
public boolean contains(T element) {
public boolean contains(Object element) {
return inner.contains(element);
}
@ -295,7 +295,7 @@ public class Collections {
return inner.iterator();
}
public boolean remove(T element) {
public boolean remove(Object element) {
throw new UnsupportedOperationException("not supported");
}