org.biojava3.core.sequence.template
Class SequenceMixin.SequenceIterator<C extends Compound>
java.lang.Object
org.biojava3.core.sequence.template.SequenceMixin.SequenceIterator<C>
- Type Parameters:
C
- Type of compound to return
- All Implemented Interfaces:
- Iterator<C>
- Enclosing class:
- SequenceMixin
public static class SequenceMixin.SequenceIterator<C extends Compound>
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceMixin.SequenceIterator
public SequenceMixin.SequenceIterator(Sequence<C> sequence)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<C extends Compound>
next
public C next()
- Specified by:
next
in interface Iterator<C extends Compound>
remove
public void remove()
- Specified by:
remove
in interface Iterator<C extends Compound>