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
Constructors Constructor Description SingleRichSeqIterator(Sequence seq)
Creates an iterator over a single sequence.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns whether there are more sequences to iterate over.BioEntry
nextBioEntry()
RichSequence
nextRichSequence()
Sequence
nextSequence()
Returns the next sequence in the iterator.
-
-
-
Constructor Detail
-
SingleRichSeqIterator
public SingleRichSeqIterator(Sequence seq)
Creates an iterator over a single sequence.- Parameters:
seq
- the sequence to iterate over.
-
-
Method Detail
-
hasNext
public boolean 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
public Sequence nextSequence()
Returns the next sequence in the iterator.- Specified by:
nextSequence
in interfaceSequenceIterator
- Returns:
- a
RichSequence
-
nextBioEntry
public BioEntry nextBioEntry()
- Specified by:
nextBioEntry
in interfaceBioEntryIterator
- Returns:
- a
RichSequence
-
nextRichSequence
public RichSequence nextRichSequence()
- Specified by:
nextRichSequence
in interfaceRichSequenceIterator
- Returns:
- a
RichSequence
-
-