/** * nextItem holds on to item fields because once we claim * that an element exists in hasNext(), we must return it in * the following next() call even if it was in the process of * being removed when hasNext() was called. */ private E nextItem;
/** * Node of the last returned item, to support remove. */ private Node<E> lastRet; } }