void (List<? extends T> newItems) { if (!myItems.isEmpty()) { int end = myItems.size() - 1; myItems.clear(); fireIntervalRemoved(this, 0, end); } if (!newItems.isEmpty()) { myItems.addAll(newItems); fireIntervalAdded(this, 0, myItems.size() - 1); } }