All Packages Class Hierarchy This Package Previous Next Index
Class java.util.VectorIterator
java.lang.Object
|
+----java.util.VectorIterator
- public class VectorIterator
- extends Object
- implements Iterator
This class provides an implementation of an Iterator that iterates
over the contents of a java.util.Vector. Its doAll()
method performs method action() on each element of the
Vector, in no guaranteed order. Methods preAction(),
action() and postAction() are empty. They
must be implemented in subclasses of this class.
- Version:
- $Revision: 1.3 $
- See Also:
- Iterator, Vector
-
VectorIterator()
-
-
action(Object)
-
-
doAll(Object)
- This is the entry point of the iterator that can be called by a client
class.
-
postAction()
-
-
preAction()
-
VectorIterator
public VectorIterator()
doAll
public void doAll(Object vector)
- This is the entry point of the iterator that can be called by a client
class. The client passes the Vector to this method, and the iterator
invokes
action() on every element of the Vector. Before
the iteration starts, preAction() is executed, and
afterwards postAction() is executed. The iteration is
performed in no guaranteed order.
- Parameters:
- vector
- The Vector to iterate over.
- See Also:
- Vector, action, preAction, postAction
preAction
public void preAction()
- See Also:
- preAction
action
public void action(Object item)
- See Also:
- action
postAction
public void postAction()
- See Also:
- postAction
All Packages Class Hierarchy This Package Previous Next Index