de.jstacs.data.bioJava
Class SimpleSequenceIterator
java.lang.Object
de.jstacs.data.bioJava.SimpleSequenceIterator
- All Implemented Interfaces:
- SequenceIterator
public class SimpleSequenceIterator
- extends Object
- implements SequenceIterator
Class that implements the SequenceIterator
interface of BioJava in a
simple way, backed by an array of Sequence
s.
- Author:
- Jan Grau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSequenceIterator
public SimpleSequenceIterator(Sequence... seqs)
- Creates a new
SimpleSequenceIterator
from an array of
Sequence
s.
- Parameters:
seqs
- the array of Sequence
s
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface SequenceIterator
nextSequence
public Sequence nextSequence()
throws NoSuchElementException,
BioException
- Specified by:
nextSequence
in interface SequenceIterator
- Throws:
NoSuchElementException
BioException
reset
public void reset()
- Provides the possibility to reset and afterwards reuse this iterator.