@PublicAPI public interface MoleculeIterator extends java.util.Iterator<Molecule>
Modifier and Type | Method and Description |
---|---|
double |
estimateProgress()
Estimates the iteration progress.
|
java.lang.Throwable |
getThrowable()
Deprecated.
Not used.
next() throws NoSuchElementException in case of error. |
boolean |
hasNext()
Tests whether the iteration has more elements.
|
Molecule |
next()
Gets the next molecule.
|
Molecule next()
next
in interface java.util.Iterator<Molecule>
null
at end of filejava.util.NoSuchElementException
- if an error occurred, and the next element cannot be returnedboolean hasNext()
hasNext
in interface java.util.Iterator<Molecule>
true
if the iterator has more elements,
false
if there are no more elements@Deprecated java.lang.Throwable getThrowable()
next()
throws NoSuchElementException
in case of error.hasNext()
returns false
.null
if it stopped normallydouble estimateProgress()