Class ObjectIterator

java.lang.Object
  |
  +--ObjectIterator
All Implemented Interfaces:
java.util.Iterator

public class ObjectIterator
extends java.lang.Object
implements java.util.Iterator

This class creates Iterators out of Vectors.


Field Summary
private  java.util.Vector data
           
private  int i
           
 
Constructor Summary
ObjectIterator(java.util.Vector data)
          The constructor for ObjectIterator.
 
Method Summary
 boolean hasNext()
          Determine whether there are more elements in the Iterator.
 java.lang.Object next()
          Get the next Object in the iteration.
 void remove()
          Unimplemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private java.util.Vector data

i

private int i
Constructor Detail

ObjectIterator

public ObjectIterator(java.util.Vector data)
The constructor for ObjectIterator.

Method Detail

hasNext

public boolean hasNext()
Determine whether there are more elements in the Iterator.

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if there are more elements, otherwise false

next

public java.lang.Object next()
Get the next Object in the iteration.

Specified by:
next in interface java.util.Iterator
Returns:
the next Object

remove

public void remove()
Unimplemented.

Specified by:
remove in interface java.util.Iterator