Class SequenceMixin.SequenceIterator<C extends Compound>
- java.lang.Object
-
- org.biojava.nbio.core.sequence.template.SequenceMixin.SequenceIterator<C>
-
- Type Parameters:
C
- Type of compound to return
- All Implemented Interfaces:
java.util.Iterator<C>
- Enclosing class:
- SequenceMixin
public static class SequenceMixin.SequenceIterator<C extends Compound> extends java.lang.Object implements java.util.Iterator<C>
A basic sequence iterator which iterates over the given Sequence by biological index. This assumes your sequence supports random access and performs well when doing these operations.- Author:
- ayates
-
-
Constructor Summary
Constructors Constructor Description SequenceIterator(Sequence<C> sequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
C
next()
void
remove()
-