@SuppressWarnings("unchecked") @Override public E remove(int index) { return (E) this.list.remove(index); }
@Override public void remove(int from, int to) { // TODO Improve performance?? for (int idx = to; idx >= from; idx--) { this.list.remove(idx); } }
@Override public boolean remove(Object o) { return this.list.remove(o); }
public Object remove(int index) { checkRealm(); return decorated.remove(index); }
/** * Removes the element at the given index from the given observable list. * Clients may extend but must call the super implementation. * * @param observableList * @param index * @return a status */ protected IStatus doRemove(IObservableList observableList, int index) { try { observableList.remove(index); } catch (Exception ex) { return logErrorWhileSettingValue(ex); } return Status.OK_STATUS; }
/** * Removes the element at the given index from the given observable list. * Clients may extend but must call the super implementation. * * @param observableList * @param index * @return a status */ protected IStatus doRemove(IObservableList<? super D> observableList, int index) { try { observableList.remove(index); } catch (Exception ex) { return logErrorWhileSettingValue(ex); } return Status.OK_STATUS; }
public Object remove(int index) { int offset = 0; for (int i = 0; i < lists.length; i++) { if (index - offset < lists[i].size()) { return lists[i].remove(index - offset); } offset += lists[i].size(); } throw new IndexOutOfBoundsException("index: " + index + ", size: " //$NON-NLS-1$ //$NON-NLS-2$ + offset); }
/** * Removes the element at the given index from the given observable list. * Clients may extend but must call the super implementation. * * @param observableList * @param index * @return a status */ protected IStatus doRemove(IObservableList observableList, int index) { try { observableList.remove(index); } catch (Exception ex) { return ValidationStatus .error( BindingMessages .getString(BindingMessages.VALUEBINDING_ERROR_WHILE_SETTING_VALUE), ex); } return Status.OK_STATUS; }