clear sorting tag if collection is modified

This commit is contained in:
anna
2009-10-19 21:31:56 +04:00
parent 29ad3e617c
commit 373fa2287c
@@ -37,11 +37,13 @@ public class SortedList<T> extends AbstractList<T>{
@Override
public T remove(final int index) {
mySorted = false;
return myDelegate.remove(index);
}
@Override
public boolean remove(Object o) {
mySorted = false;
ensureSorted();
final int i = Collections.binarySearch(myDelegate, (T)o, myComparator);
if (i >= 0) {