@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange(int start, int end) { if (start != end) { if (modCount == fullList.modCount) { fullList.removeRange(start + offset, end + offset); size -= end - start; modCount = fullList.modCount; } else { throw new ConcurrentModificationException(); } } }
@Override protected void removeRange( final int fromIndex, final int toIndex ) { super.removeRange( fromIndex, toIndex ); fireIntervalRemoved( fromIndex, toIndex ); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
protected void removeRange(int fromIndex, int toIndex) { checkForComodification(); l.removeRange(fromIndex+offset, toIndex+offset); this.modCount = l.modCount; size -= (toIndex-fromIndex); }
protected void removeRange(int fromIndex, int toIndex) { checkForComodification(); l.removeRange(fromIndex+offset, toIndex+offset); this.modCount = l.modCount; size -= (toIndex-fromIndex); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
/** * Removes all elements from this list, leaving it empty. * * @throws UnsupportedOperationException * if removing from this list is not supported. * @see List#isEmpty * @see List#size */ @Override public void clear() { removeRange(0, size()); }
protected void removeRange(int fromIndex, int toIndex) { checkForComodification(); l.removeRange(fromIndex+offset, toIndex+offset); this.modCount = l.modCount; size -= (toIndex-fromIndex); }