Package chemaxon.util.iterator
Class IteratorFactory.SgroupIterator
- java.lang.Object
-
- chemaxon.util.iterator.IteratorFactory.SgroupIterator
-
-
Constructor Summary
Constructors Constructor Description SgroupIterator()
Constructs an s-group iterator for the specified molecule of the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Decides whether the iteration has more element.
-
next
public Sgroup 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.
-
-