Package chemaxon.util.iterator
Class IteratorFactory.RgComponentIterator
java.lang.Object
chemaxon.util.iterator.IteratorFactory.RgComponentIterator
- Enclosing class:
- IteratorFactory
The
RgComponentIterator
class provides an iterator to
process the rgroup definition components in the specified molecule of the
factory.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an iterator to process the rgroup definition components, if the specified molecule in the factory is an RgMolecule, the iterator is empty otherwise. -
Method Summary
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
-
Constructor Details
-
RgComponentIterator
public RgComponentIterator()Constructs an iterator to process the rgroup definition components, if the specified molecule in the factory is an RgMolecule, the iterator is empty otherwise.
-
-
Method Details
-
hasNext
public boolean hasNext()Decides whether the iteration has more element. -
nextComponent
Deprecated.As of Marvin 6.2, Usenext()
instead.Returns the next component in the iteration.- Returns:
- the next component in the iteration
-
next
Returns the next component in the iteration.- Specified by:
next
in interfaceIterator<Molecule>
- Returns:
- the next component in the iteration
- 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:
-
next()
instead.