@Override public void remove() { if (stmt == null) throw new NoSuchElementException(); ((ContainerI)seq).remove(index-numDeleted, stmt.getObject()); stmt = null; numDeleted++; } }
@Override public void remove() throws NoSuchElementException { if (recent == null) throw new NoSuchElementException(); iterator.remove(); if (index > (size - numDeleted)) { ((ContainerI) cont).remove( moved.get(size-index).intValue(), recent.getObject() ); } else { cont.remove( recent ); moved.add( new Integer( index ) ); } recent = null; numDeleted += 1; } }