chemaxon.util.iterator
Class IteratorFactory.RxnComponentIterator

java.lang.Object
  extended by chemaxon.util.iterator.IteratorFactory.RxnComponentIterator
All Implemented Interfaces:
java.util.Iterator<Molecule>
Enclosing class:
IteratorFactory

public class IteratorFactory.RxnComponentIterator
extends java.lang.Object
implements java.util.Iterator<Molecule>

The RxnComponentIterator class provides an iterator to process the components (reactant, product and agent components) in the reaction molecule of the factory.


Constructor Summary
IteratorFactory.RxnComponentIterator()
          Constructs an iterator to process the components (reactant, product and agent components), if the specified molecule in the factory is an RxnMolecule, the iterator is empty otherwise.
 
Method Summary
 boolean hasNext()
          Decides whether the iteration has more element.
 Molecule next()
          Returns the next component in the iterator.
 Molecule nextComponent()
          Deprecated. Use next() instead.
 void remove()
          The remove operation is not supported by this Iterator implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorFactory.RxnComponentIterator

public IteratorFactory.RxnComponentIterator()
Constructs an iterator to process the components (reactant, product and agent components), if the specified molecule in the factory is an RxnMolecule, the iterator is empty otherwise.

Method Detail

nextComponent

public Molecule nextComponent()
Deprecated. Use next() instead.

Returns the next component in the iterator.

Returns:
the next component in the iterator

hasNext

public boolean hasNext()
Decides whether the iteration has more element.

Specified by:
hasNext in interface java.util.Iterator<Molecule>
Returns:
true if the iteration has more element, false otherwise.

next

public Molecule next()
Returns the next component in the iterator.

Specified by:
next in interface java.util.Iterator<Molecule>
Returns:
the next component in the iterator
Throws:
java.util.NoSuchElementException

remove

public void remove()
The remove operation is not supported by this Iterator implementation.

Specified by:
remove in interface java.util.Iterator<Molecule>
Throws:
java.lang.UnsupportedOperationException
See Also:
Iterator.remove()