JOELib
Computational Chemistry Package

joelib.util.iterator
Class VectorIterator

java.lang.Object
  extended byjoelib.util.iterator.VectorIterator
All Implemented Interfaces:
Cloneable, Iterator
Direct Known Subclasses:
AtomIterator, BondIterator, ConformerIterator, NbrAtomIterator, ResidueIterator, RingIterator, RotamerIterator, RotorIterator

public class VectorIterator
extends Object
implements Iterator, Cloneable

Iterator for the standard Vector.

Author:
Jörg Kurt Wegner (wegnerj at informatik.uni-tuebingen.de) at the Department of Cognitive Systems
CVS Version:
Revision: 1.11Date: 2004/07/25 20:43:29source code (CVS head)
License:
Licensed under the terms of the GNU General Public License (GPL).

Constructor Summary
VectorIterator(Vector vector)
          Constructor for the VectorIterator object
 
Method Summary
 Object actual()
          Returns the actual Object .
 int actualIndex()
          Returns the index number ot the sctual Object .
 Object clone()
          Description of the Method
 boolean hasNext()
          Description of the Method
 void insert(Object newObject)
          Description of the Method
 Object next()
          Description of the Method
 void remove()
          Description of the Method
 void reset()
          Description of the Method
 void setActualIndex(int index)
          Sets the actual index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorIterator

public VectorIterator(Vector vector)
Constructor for the VectorIterator object

Parameters:
vector - Description of the Parameter
Method Detail

setActualIndex

public final void setActualIndex(int index)
Sets the actual index.

Parameters:
index - The new actualIndex value

actual

public Object actual()
Returns the actual Object .

Returns:
Description of the Return Value

actualIndex

public final int actualIndex()
Returns the index number ot the sctual Object . Warning: Util now you should not use setIndex(actualIndex()) because the internal index will be not set correctly !!!

Returns:
Description of the Return Value

clone

public Object clone()
Description of the Method

Returns:
Description of the Return Value

hasNext

public boolean hasNext()
Description of the Method

Specified by:
hasNext in interface Iterator
Returns:
Description of the Return Value

insert

public void insert(Object newObject)
Description of the Method

Parameters:
newObject - Description of the Parameter

next

public Object next()
Description of the Method

Specified by:
next in interface Iterator
Returns:
Description of the Return Value

remove

public void remove()
Description of the Method

Specified by:
remove in interface Iterator

reset

public void reset()
Description of the Method


JOELib
Computational Chemistry Package

Comments and Questions? mail to J.K.Wegner