public void setAll(Collection<? extends T> items) {
    clear();
    myItems.addAll(items);
    if (myComparator != null) myItems.sort(myComparator);
    int newSize = getSize();
    if (newSize > 0) fireIntervalAdded(this, 0, newSize - 1);
  }
public void setAll(Collection<? extends T> items)