@Override public void remove() { if (index == 0) { throw new IllegalStateException(); } index--; parent.removeChild(children.item(index)); size = children.getLength(); }