1 public class VectorIterator extends Iterator {
6 public VectorIterator(Vector v) {
9 this.size = this.list.size();
13 * Tests to see if there are any more objects to
16 * @return True if the end of the list has not yet been
19 public boolean hasNext()
25 * Retrieves the next object from the list.
27 * @return The next object.
32 return null; //since we can't throw anything...
34 return this.list.get(pos++);