mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
O(1) SortedList.isEmpty
This commit is contained in:
@@ -93,6 +93,11 @@ public class SortedList<T> extends AbstractList<T>{
|
||||
myDelegate = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return myMap.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
ensureLinearized();
|
||||
|
||||
Reference in New Issue
Block a user