public interface SequenceIterator
java.util.Iterator was not appropriate here, as we need specific exceptions to be thrown, and as much type-safety as possible. However, we have made it as compliant with Iterator as we could so that there is a minimal learning curve.
RichSequenceIterator
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns whether there are more sequences to iterate over.
|
Sequence |
nextSequence()
Returns the next sequence in the iterator.
|
boolean hasNext()
Sequence nextSequence() throws NoSuchElementException, BioException
NoSuchElementException
- if you call nextSequence when hasNext
returns falseBioException
- if for any reason the sequence could not be retrievedCopyright © 2014 BioJava. All rights reserved.