public class IteratorFactory.RxnComponentIterator extends Object implements Iterator<Molecule>
RxnComponentIterator
class provides an iterator to
process the components (reactant, product and agent components) in the
reaction molecule of the factory.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Decides whether the iteration has more element.
|
Molecule |
next()
Returns the next component in the iterator.
|
Molecule |
nextComponent()
Deprecated.
As of Marvin 6.2, Use
next() instead. |
void |
remove()
The remove operation is not supported by this Iterator
implementation.
|
public IteratorFactory.RxnComponentIterator()
@Deprecated public Molecule nextComponent()
next()
instead.public boolean hasNext()
public Molecule next()
next
in interface Iterator<Molecule>
NoSuchElementException
public void remove()
remove
in interface Iterator<Molecule>
UnsupportedOperationException
Iterator.remove()