public void remove() throws RepositoryException { wrappedIter.remove(); }
@Override public void remove() throws RepositoryException { wrappedIter.remove(); }
@Override public void remove() { iteration.remove(); }
@Override public void remove() { iteration.remove(); }
@Override public void remove() { iteration.remove(); }
/** * Calls the <tt>remove</tt> method of the underlying iteration. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } Iteration<? extends E, ? extends X> resultIter = iter; if (resultIter == null) { throw new IllegalStateException("Underlying iteration was null"); } resultIter.remove(); }
/** * Calls the <tt>remove</tt> method of the underlying iteration. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } Iteration<? extends E, ? extends X> resultIter = iter; if (resultIter == null) { throw new IllegalStateException("Underlying iteration was null"); } resultIter.remove(); }
/** * Calls the <tt>remove</tt> method of the underlying iteration. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } Iteration<? extends E, ? extends X> resultIter = iter; if (resultIter == null) { throw new IllegalStateException("Underlying iteration was null"); } resultIter.remove(); }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } iter.remove(); }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } iter.remove(); }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } iter.remove(); }
/** * Removes the last element that has been returned from the wrapped Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * if the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } else if (Thread.currentThread().isInterrupted()) { close(); throw new IllegalStateException("The iteration has been interrupted."); } try { wrappedIter.remove(); } catch(IllegalStateException e) { close(); throw e; } }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { iter.remove(); } catch (UnsupportedOperationException e) { throw e; } catch (IllegalStateException e) { throw e; } catch (Exception e) { throw convert(e); } }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { iter.remove(); } catch (UnsupportedOperationException e) { throw e; } catch (IllegalStateException e) { throw e; } catch (Exception e) { throw convert(e); } }
/** * Removes the last element that has been returned from the wrapped Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * if the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } else if (Thread.currentThread().isInterrupted()) { close(); throw new IllegalStateException("The iteration has been interrupted."); } try { wrappedIter.remove(); } catch(IllegalStateException e) { close(); throw e; } }
/** * Calls <tt>remove()</tt> on the underlying Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * If the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ @Override public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { iter.remove(); } catch (UnsupportedOperationException e) { throw e; } catch (IllegalStateException e) { throw e; } catch (Exception e) { throw convert(e); } }
/** * Removes the last element that has been returned from the wrapped Iteration. * * @throws UnsupportedOperationException * If the wrapped Iteration does not support the <tt>remove</tt> operation. * @throws IllegalStateException * if the Iteration has been closed, or if {@link #next} has not yet been called, or * {@link #remove} has already been called after the last call to {@link #next}. */ public void remove() throws X { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } else if (Thread.currentThread().isInterrupted()) { close(); throw new IllegalStateException("The iteration has been interrupted."); } try { wrappedIter.remove(); } catch(IllegalStateException e) { close(); throw e; } }