Package chemaxon.util.iterator
Class IteratorFactory.RxnComponentIterator
- java.lang.Object
-
- chemaxon.util.iterator.IteratorFactory.RxnComponentIterator
-
- Enclosing class:
- IteratorFactory
public class IteratorFactory.RxnComponentIterator extends Object implements Iterator<Molecule>
TheRxnComponentIterator
class provides an iterator to process the components (reactant, product and agent components) in the reaction molecule of the factory.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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, Usenext()
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
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
nextComponent
@Deprecated public Molecule nextComponent()
Deprecated.As of Marvin 6.2, Usenext()
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.
-
next
public Molecule next()
Returns the next component in the iterator.- Specified by:
next
in interfaceIterator<Molecule>
- Returns:
- the next component in the iterator
- Throws:
NoSuchElementException
-
remove
public void remove()
The remove operation is not supported by this Iterator implementation.- Specified by:
remove
in interfaceIterator<Molecule>
- Throws:
UnsupportedOperationException
- See Also:
Iterator.remove()
-
-