Class IteratorFactory.RgComponentIterator

java.lang.Object
chemaxon.util.iterator.IteratorFactory.RgComponentIterator
All Implemented Interfaces:
Iterator<Molecule>
Enclosing class:
IteratorFactory

public class IteratorFactory.RgComponentIterator extends Object implements Iterator<Molecule>
The RgComponentIterator class provides an iterator to process the rgroup definition components in the specified molecule of the factory.
  • 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.
      Specified by:
      hasNext in interface Iterator<Molecule>
      Returns:
      true if the iteration has more element, false otherwise.
    • nextComponent

      @Deprecated public Molecule nextComponent()
      Deprecated.
      As of Marvin 6.2, Use next() instead.
      Returns the next component in the iteration.
      Returns:
      the next component in the iteration
    • next

      public Molecule next()
      Returns the next component in the iteration.
      Specified by:
      next in interface Iterator<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 interface Iterator<Molecule>
      Throws:
      UnsupportedOperationException
      See Also: