Source of 13.24.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0

  4: private enum Move {NEXT, PREVIOUS}

  6: private class ListIteratorForArrayList implements ListIterator<T>
  7: {
  8:    private int nextIndex; // Index of next entry in the iteration
  9:    private boolean isRemoveOrSetLegal;
 10:    private Move lastMove;
 11:    
 12:    private ListIteratorForArrayList()
 13:    {
 14:       nextIndex = 1; // Iteration begins at list's first entry
 15:       isRemoveOrSetLegal = false;
 16:       lastMove = null;
 17:    } // end default constructor
 18: