chemaxon.util.iterator
Class IteratorFactory.AtomIterator

java.lang.Object
  extended by chemaxon.util.iterator.IteratorFactory.AtomIterator
All Implemented Interfaces:
java.util.Iterator<MolAtom>
Enclosing class:
IteratorFactory

public class IteratorFactory.AtomIterator
extends java.lang.Object
implements java.util.Iterator<MolAtom>

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
IteratorFactory.AtomIterator()
          Constructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory.
 
Method Summary
 boolean hasNext()
          Decides whether the iteration has more element.
 MolAtom next()
          Returns the next atom in the iteration.
 MolAtom nextAtom()
          Deprecated. Use next() 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
 

Constructor Detail

IteratorFactory.AtomIterator

public IteratorFactory.AtomIterator()
Constructs an atom iterator for the specified molecule of the factory according to the atom related behavior set in the factory.

Method Detail

hasNext

public boolean hasNext()
Decides whether the iteration has more element.

Specified by:
hasNext in interface java.util.Iterator<MolAtom>
Returns:
true if the iteration has more element, false otherwise.

nextAtom

public MolAtom nextAtom()
Deprecated. Use next() instead.

Returns the next atom in the iteration.

Returns:
the next atom in the iteration.

next

public MolAtom next()
Returns the next atom in the iteration.

Specified by:
next in interface java.util.Iterator<MolAtom>
Returns:
the next atom in the iteration.
Throws:
java.util.NoSuchElementException

remove

public void remove()
The remove operation is not supported by this Iterator implementation.

Specified by:
remove in interface java.util.Iterator<MolAtom>
Throws:
java.lang.UnsupportedOperationException
See Also:
Iterator.remove()