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 TypeMethodDescriptionboolean
hasNext()
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:
hasNext
in interfaceBioEntryIterator
- Specified by:
hasNext
in interfaceSequenceIterator
- Returns:
- true if another
RichSequence
is available
-
nextSequence
Returns the next sequence in the iterator.- Specified by:
nextSequence
in interfaceSequenceIterator
- Returns:
- a
RichSequence
-
nextBioEntry
- Specified by:
nextBioEntry
in interfaceBioEntryIterator
- Returns:
- a
RichSequence
-
nextRichSequence
- Specified by:
nextRichSequence
in interfaceRichSequenceIterator
- Returns:
- a
RichSequence
-