Package chemaxon.util.iterator
Class IteratorFactory.RxnComponentIterator
java.lang.Object
chemaxon.util.iterator.IteratorFactory.RxnComponentIterator
- Enclosing class:
- IteratorFactory
The 
RxnComponentIterator class provides an iterator to
 process the components (reactant, product and agent components) in the
 reaction molecule of the factory.- 
Constructor SummaryConstructorsConstructorDescriptionConstructs 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 SummaryModifier and TypeMethodDescriptionbooleanhasNext()Decides whether the iteration has more element.next()Returns the next component in the iterator.Deprecated, for removal: This API element is subject to removal in a future version.voidremove()The remove operation is not supported by this Iterator implementation.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
RxnComponentIteratorpublic 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 Details- 
nextComponentDeprecated, for removal: This API element is subject to removal in a future version.As of Marvin 6.2, Usenext()instead.Returns the next component in the iterator.- Returns:
- the next component in the iterator
 
- 
hasNextpublic boolean hasNext()Decides whether the iteration has more element.
- 
nextReturns the next component in the iterator.- Specified by:
- nextin interface- Iterator<Molecule>
- Returns:
- the next component in the iterator
- Throws:
- NoSuchElementException
 
- 
removepublic void remove()The remove operation is not supported by this Iterator implementation.- Specified by:
- removein interface- Iterator<Molecule>
- Throws:
- UnsupportedOperationException
- See Also:
 
 
- 
next()instead.