/** * Sets the contents of this model. All previous contents are removed. * * @param contents The new contents of this model. */ public void setContents(Collection<Completion> contents) { clear(); int count = contents.size(); if (count>0) { delegate.addAll(contents); fireIntervalAdded(this, 0, count-1); // endpoints included (!) } }