Package org.biojavax.bio.seq
Class RichSequence.IOTools.SingleRichSeqIterator
java.lang.Object
org.biojavax.bio.seq.RichSequence.IOTools.SingleRichSeqIterator
- All Implemented Interfaces:
SequenceIterator,BioEntryIterator,RichSequenceIterator
- Enclosing class:
- RichSequence.IOTools
public static final class RichSequence.IOTools.SingleRichSeqIterator
extends Object
implements RichSequenceIterator
Used to iterate over a single rich sequence
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an iterator over a single sequence. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()Returns whether there are more sequences to iterate over.Returns the next sequence in the iterator.
-
Constructor Details
-
SingleRichSeqIterator
Creates an iterator over a single sequence.- Parameters:
seq- the sequence to iterate over.
-
-
Method Details
-
hasNext
Returns whether there are more sequences to iterate over.- Specified by:
hasNextin interfaceBioEntryIterator- Specified by:
hasNextin interfaceSequenceIterator- Returns:
- true if another
RichSequenceis available
-
nextSequence
Returns the next sequence in the iterator.- Specified by:
nextSequencein interfaceSequenceIterator- Returns:
- a
RichSequence
-
nextBioEntry
- Specified by:
nextBioEntryin interfaceBioEntryIterator- Returns:
- a
RichSequence
-
nextRichSequence
- Specified by:
nextRichSequencein interfaceRichSequenceIterator- Returns:
- a
RichSequence
-