Пример #1
0
 /**
  * Removes from the underlying {@code LinkedList} the last element returned by this descending
  * iterator. This method can be called only once per call to {@link #next()}.
  *
  * <p>The behavior of an iterator is unspecified if the underlying collection is modified while
  * the iteration is in progress in any way other than by calling this method.
  *
  * @throws ConcurrentModificationException if the expected modification count does not equal
  *     that of the underlying {@code LinkedList}.
  * @throws IllegalStateException if the {@link #next()} method has not previously been called or
  *     the {@link #remove()} method has already been called after the last call to the {@link
  *     #next()} method.
  */
 @Override
 public void remove() {
   iterator.remove();
 }