Package chemaxon.util.iterator
Interface MoleculeIterator
-
@PublicAPI public interface MoleculeIterator extends Iterator<Molecule>
Molecule iterator.- Since:
- Marvin 5.1, 08/01/2008
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description double
estimateProgress()
Estimates the iteration progress.Throwable
getThrowable()
Deprecated.Not used.boolean
hasNext()
Tests whether the iteration has more elements.Molecule
next()
Gets the next molecule.-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
next
Molecule next()
Gets the next molecule.- Specified by:
next
in interfaceIterator<Molecule>
- Returns:
- the molecule or
null
at end of file - Throws:
NoSuchElementException
- if an error occurred, and the next element cannot be returned
-
hasNext
boolean hasNext()
Tests whether the iteration has more elements.
-
getThrowable
@Deprecated Throwable getThrowable()
Deprecated.Not used.next()
throwsNoSuchElementException
in case of error.Gets the exception which stopped the iteration. It should be called whenhasNext()
returnsfalse
.- Returns:
- the exception if the iteration was stopped by an error,
null
if it stopped normally
-
estimateProgress
double estimateProgress()
Estimates the iteration progress.- Returns:
- number between 0 and 1
-
-