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 Summary
ConstructorDescriptionConstructs an s-group iterator for the specified molecule of the factory. -
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
-
SgroupIterator
public SgroupIterator()Constructs an s-group iterator for the specified molecule of the factory.
-
-
Method Details
-
hasNext
public boolean hasNext()Decides whether the iteration has more element. -
next
Returns the next s-group in the iteration.- Specified by:
next
in interfaceIterator<Sgroup>
- Returns:
- the next s-group in the iteration.
- Throws:
NoSuchElementException
-
remove
public void remove()Removes the next s-group in the iteration. This method can be called only once per call tonext
.- Specified by:
remove
in interfaceIterator<Sgroup>
- Throws:
IllegalStateException
- if thenext
method has not yet been called, or the remove method has already been called after the last call to thenext
method.
-