@Override public void remove() { if (!canRemove) { throw new IllegalStateException(); } else { canRemove = false; list.remove(previous); } }
RelationListIterator(RelationList<?, X> list) { this.list = list; this.iter = list.elementSet().iterator(); }