@Override public BindingSet next() throws QueryEvaluationException { if (isClosed()) { throw new NoSuchElementException("The iteration has been closed."); } try { return filter.next(); } catch (NoSuchElementException e) { close(); throw e; } }
@Override public void remove() throws QueryEvaluationException { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { filter.remove(); } catch (IllegalStateException e) { close(); throw e; } }
@Override public BindingSet next() throws QueryEvaluationException { if (isClosed()) { throw new NoSuchElementException("The iteration has been closed."); } try { return filter.next(); } catch (NoSuchElementException e) { close(); throw e; } }
@Override public void remove() throws QueryEvaluationException { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { filter.remove(); } catch (IllegalStateException e) { close(); throw e; } }
@Override public BindingSet next() throws QueryEvaluationException { if (isClosed()) { throw new NoSuchElementException("The iteration has been closed."); } try { return filter.next(); } catch (NoSuchElementException e) { close(); throw e; } }
@Override public void remove() throws QueryEvaluationException { if (isClosed()) { throw new IllegalStateException("The iteration has been closed."); } try { filter.remove(); } catch (IllegalStateException e) { close(); throw e; } }
@Override public boolean hasNext() throws QueryEvaluationException { if (isClosed()) { return false; } boolean result = filter.hasNext(); if (!result) { close(); } return result; }
@Override public boolean hasNext() throws QueryEvaluationException { if (isClosed()) { return false; } boolean result = filter.hasNext(); if (!result) { close(); } return result; }
@Override public boolean hasNext() throws QueryEvaluationException { if (isClosed()) { return false; } boolean result = filter.hasNext(); if (!result) { close(); } return result; }