Class IteratorFactory.SgroupIterator

java.lang.Object
chemaxon.struc.IteratorFactory.SgroupIterator
All Implemented Interfaces:
Iterator<Sgroup>
Enclosing class:
IteratorFactory

@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2027) public class IteratorFactory.SgroupIterator extends Object implements Iterator<Sgroup>
Deprecated, for removal: This API element is subject to removal in a future version.
The SgroupIterator class provides an iterator for the s-groups of the specified molecule of the factory.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs an s-group iterator for the specified molecule of the factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Decides whether the iteration has more element.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the next s-group in the iteration.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Removes the next s-group in the iteration.

    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

    • SgroupIterator

      public SgroupIterator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs an s-group iterator for the specified molecule of 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.
      Specified by:
      hasNext in interface Iterator<Sgroup>
      Returns:
      true if the iteration has more element, false otherwise.
    • next

      public Sgroup next()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the next s-group in the iteration.
      Specified by:
      next in interface Iterator<Sgroup>
      Returns:
      the next s-group in the iteration.
      Throws:
      NoSuchElementException
    • remove

      public void remove()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Removes the next s-group in the iteration. This method can be called only once per call to next.
      Specified by:
      remove in interface Iterator<Sgroup>
      Throws:
      IllegalStateException - if the next method has not yet been called, or the remove method has already been called after the last call to the next method.