public E next() {if (index < to) {return (E) snapshot[index++];} else {throw new NoSuchElementException();}}
public virtual E next(){if (index < to){return (E)snapshot[index++];}else{throw new java.util.NoSuchElementException();}}