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() {
24 * Retrieves the next object from the list.
26 * @return The next object.
28 public Object next() {
30 return null; //since we can't throw anything...
32 return this.list.get(pos++);