Package chemaxon.struc
Class IteratorFactory.AtomIterator
java.lang.Object
chemaxon.struc.IteratorFactory.AtomIterator
- Enclosing class:
IteratorFactory
@Deprecated(forRemoval=true)
@SubjectToRemoval(date=JUL_01_2027)
public class IteratorFactory.AtomIterator
extends Object
implements Iterator<MolAtom>
Deprecated, for removal: This API element is subject to removal in a future version.
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 Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Deprecated, for removal: This API element is subject to removal in a future version.Decides whether the iteration has more element.next()Deprecated, for removal: This API element is subject to removal in a future version.Returns the next atom in the iteration.voidremove()Deprecated, for removal: This API element is subject to removal in a future version.Removes the next atom in the iteration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AtomIterator
public AtomIterator()Deprecated, for removal: This API element is subject to removal in a future version.Constructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated, for removal: This API element is subject to removal in a future version.Decides whether the iteration has more element. -
next
Deprecated, for removal: This API element is subject to removal in a future version.Returns the next atom in the iteration.- Specified by:
nextin interfaceIterator<MolAtom>- Returns:
- the next atom in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.
-
remove
public void remove()Deprecated, for removal: This API element is subject to removal in a future version.Removes the next atom in the iteration. This method can be called only once per call tonext.- Specified by:
removein interfaceIterator<MolAtom>- Throws:
IllegalStateException- if thenextmethod has not yet been called, or the remove method has already been called after the last call to thenextmethod.
-