Remove by reference as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1892 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -196,6 +196,17 @@ public class ObserverList<T> extends ArrayList<T>
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean remove (Object element)
|
||||||
|
{
|
||||||
|
int dex = indexOf(element);
|
||||||
|
if (dex == -1) {
|
||||||
|
return false; // not found
|
||||||
|
}
|
||||||
|
remove(dex);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies the supplied observer operation to all observers in the
|
* Applies the supplied observer operation to all observers in the
|
||||||
* list in a manner conforming to the notification ordering policy
|
* list in a manner conforming to the notification ordering policy
|
||||||
|
|||||||
Reference in New Issue
Block a user