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

@ -33,7 +33,7 @@ public abstract class AbstractCollection<T> implements Collection<T> {
+ this.getClass().getName());
}
public boolean contains(T element) {
public boolean contains(Object element) {
if (element != null) {
for (Iterator<T> iter = iterator(); iter.hasNext();) {
if (element.equals(iter.next())) {
@ -55,7 +55,7 @@ public abstract class AbstractCollection<T> implements Collection<T> {
return size() == 0;
}
public boolean remove(T element) {
public boolean remove(Object element) {
throw new UnsupportedOperationException("remove(T) in "
+ this.getClass().getName());
}