Class SequenceMixin.SequenceIterator<C extends Compound>

  • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      C next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • SequenceIterator

        public SequenceIterator​(Sequence<C> sequence)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<C extends Compound>
      • next

        public C next()
        Specified by:
        next in interface java.util.Iterator<C extends Compound>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<C extends Compound>