public class IteratorFactory.SgroupIterator extends java.lang.Object implements java.util.Iterator<Sgroup>
SgroupIterator
class provides an iterator for the
s-groups of the specified molecule of the factory.Constructor and Description |
---|
SgroupIterator()
Constructs an s-group iterator for the specified molecule of the
factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Decides whether the iteration has more element.
|
Sgroup |
next()
Returns the next s-group in the iteration.
|
void |
remove()
Removes the next s-group in the iteration.
|
public SgroupIterator()
public boolean hasNext()
hasNext
in interface java.util.Iterator<Sgroup>
public Sgroup next()
next
in interface java.util.Iterator<Sgroup>
java.util.NoSuchElementException
public void remove()
next
.remove
in interface java.util.Iterator<Sgroup>
java.lang.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.