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

Constructor Index

 o VectorIterator()

Method Index

 o action(Object)
 o doAll(Object)
This is the entry point of the iterator that can be called by a client class.
 o postAction()
 o preAction()

Constructors

 o VectorIterator
 public VectorIterator()

Methods

 o 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
 o preAction
 public void preAction()
See Also:
preAction
 o action
 public void action(Object item)
See Also:
action
 o postAction
 public void postAction()
See Also:
postAction

All Packages  Class Hierarchy  This Package  Previous  Next  Index