Class Chunk.ChunkIterator

  • All Implemented Interfaces:
    java.util.Iterator<W>
    Enclosing class:
    Chunk<W>

    public class Chunk.ChunkIterator
    extends java.lang.Object
    implements java.util.Iterator<W>
    Special iterator for a chunk providing the remove(Throwable) method for dynamically removing an item and adding it to the skips.
    Author:
    Dave Syer
    • Constructor Summary

      Constructors 
      ConstructorDescription
      ChunkIterator​(java.util.List<W> items) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanhasNext() 
      Wnext() 
      voidremove() 
      voidremove​(java.lang.Throwable e) 
      java.lang.StringtoString() 
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Constructor Detail

      • ChunkIterator

        public ChunkIterator​(java.util.List<W> items)
    • Method Detail

      • hasNext

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

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

        public void remove​(java.lang.Throwable e)
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<W>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object