Package chemaxon.util.iterator
Class IteratorFactory.SgroupIterator
java.lang.Object
chemaxon.util.iterator.IteratorFactory.SgroupIterator
- Enclosing class:
- IteratorFactory
The 
SgroupIterator class provides an iterator for the
 s-groups of the specified molecule of the factory.- 
Constructor SummaryConstructorsConstructorDescriptionConstructs an s-group iterator for the specified molecule of the factory.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
SgroupIteratorpublic SgroupIterator()Constructs an s-group iterator for the specified molecule of the factory.
 
- 
- 
Method Details- 
hasNextpublic boolean hasNext()Decides whether the iteration has more element.
- 
nextReturns the next s-group in the iteration.- Specified by:
- nextin interface- Iterator<Sgroup>
- Returns:
- the next s-group in the iteration.
- Throws:
- NoSuchElementException
 
- 
removepublic void remove()Removes the next s-group in the iteration. This method can be called only once per call tonext.- Specified by:
- removein interface- Iterator<Sgroup>
- Throws:
- IllegalStateException- if the- nextmethod has not yet been called, or the remove method has already been called after the last call to the- nextmethod.
 
 
-