/** * Resets the iterator back to the start of the list. */ @Override public void reset() { _reset(); }
/** * Constructor that wraps a list. * <p> * There is no way to reset a ListIterator instance without * recreating it from the original source, so the List must be * passed in and a reference to it held. * * @param list the list to wrap * @throws NullPointerException if the list it null */ public LoopingListIterator(final List<E> list) { if (list == null) { throw new NullPointerException("The list must not be null"); } this.list = list; _reset(); }