public E remove(int i) { E ret = store.remove(i); for (CollectionObserver<E> o : observers) { o.removed(host, ret); } return ret; }
public E set(int i, E e) { E old = store.get(i); E ret = store.set(i, e); if (old != e) { for (CollectionObserver<E> o : observers) { o.removed(host, old); o.added(host, e); } } return ret; }