chemaxon.util.iterator
Class IteratorFactory.RgComponentIterator

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

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

The RgComponentIterator class provides an iterator to process the rgroup definition components in the specified molecule of the factory.


Constructor Summary
IteratorFactory.RgComponentIterator()
          Constructs an iterator to process the rgroup definition components, if the specified molecule in the factory is an RgMolecule, the iterator is empty otherwise.
 
Method Summary
 boolean hasNext()
          Decides whether the iteration has more element.
 Molecule next()
          Returns the next component in the iteration.
 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.RgComponentIterator

public IteratorFactory.RgComponentIterator()
Constructs an iterator to process the rgroup definition components, if the specified molecule in the factory is an RgMolecule, the iterator is empty otherwise.

Method Detail

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.

nextComponent

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

Returns the next component in the iteration.

Returns:
the next component in the iteration

next

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

Specified by:
next in interface java.util.Iterator<Molecule>
Returns:
the next component in the iteration
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()