/** * Removes the supplied element from the list, forcing a notification to the listeners * regardless of whether the element was in the list or not. * @return true if the element was in the list and was removed, false if it was not. */ public boolean removeForce (E elem) { checkMutate(); int index = _impl.indexOf(elem); if (index >= 0) _impl.remove(index); emitRemove(index, elem); return (index >= 0); }
@Override public boolean remove (Object object) { checkMutate(); int index = _impl.indexOf(object); if (index < 0) return false; _impl.remove(index); // the cast is safe if the element was removed @SuppressWarnings("unchecked") E elem = (E)object; emitRemove(index, elem); return true; }
public void remove () { checkMutate(); int index = iiter.previousIndex(); iiter.remove(); emitRemove(index, _current); } public void set (E elem) {
@Override public E remove (int index) { checkMutate(); E removed = _impl.remove(index); emitRemove(index, removed); return removed; }
@Override public boolean remove (Object object) { checkMutate(); int index = _impl.indexOf(object); if (index < 0) return false; _impl.remove(index); // the cast is safe if the element was removed @SuppressWarnings("unchecked") E elem = (E)object; emitRemove(index, elem); return true; }
/** * Removes the supplied element from the list, forcing a notification to the listeners * regardless of whether the element was in the list or not. * @return true if the element was in the list and was removed, false if it was not. */ public boolean removeForce (E elem) { checkMutate(); int index = _impl.indexOf(elem); if (index >= 0) _impl.remove(index); emitRemove(index, elem); return (index >= 0); }
public void remove () { checkMutate(); int index = iiter.previousIndex(); iiter.remove(); emitRemove(index, _current); } public void set (E elem) {
@Override public E remove (int index) { checkMutate(); E removed = _impl.remove(index); emitRemove(index, removed); return removed; }