Package chemaxon.util.iterator
Class IteratorFactory.AtomIterator
java.lang.Object
chemaxon.util.iterator.IteratorFactory.AtomIterator
- Enclosing class:
- IteratorFactory
The 
AtomIterator class provides an iterator for the atoms of
 the specified molecule of the factory according to the atom related
 behavior set in the factory.- 
Constructor SummaryConstructorsConstructorDescriptionConstructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
AtomIteratorpublic AtomIterator()Constructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory.
 
- 
- 
Method Details- 
hasNextpublic boolean hasNext()Decides whether the iteration has more element.
- 
nextAtomDeprecated, for removal: This API element is subject to removal in a future version.As of Marvin 6.2, Usenext()instead.Returns the next atom in the iteration.- Returns:
- the next atom in the iteration.
 
- 
nextReturns the next atom in the iteration.- Specified by:
- nextin interface- Iterator<MolAtom>
- Returns:
- the next atom in the iteration.
- Throws:
- NoSuchElementException- iteration has no more elements.
 
- 
removepublic void remove()Removes the next atom in the iteration. This method can be called only once per call tonext.- Specified by:
- removein interface- Iterator<MolAtom>
- Throws:
- IllegalStateException- if the- nextmethod has not yet been called, or the remove method has already been called after the last call to the- nextmethod.
 
 
- 
next()instead.