Class BlockList.BlockListIterator

  • All Implemented Interfaces:
    java.util.Iterator<Block>, java.util.ListIterator<Block>
    Enclosing class:
    BlockList

    public class BlockList.BlockListIterator
    extends java.lang.Object
    implements java.util.ListIterator<Block>
    • Constructor Detail

      • BlockListIterator

        public BlockListIterator​(BlockList list)
    • Method Detail

      • hasNext

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

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

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Block>
        Specified by:
        remove in interface java.util.ListIterator<Block>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface java.util.ListIterator<Block>
      • previous

        public Block previous()
        Specified by:
        previous in interface java.util.ListIterator<Block>
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator<Block>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator<Block>
      • set

        public void set​(Block e)
        Specified by:
        set in interface java.util.ListIterator<Block>
      • add

        public void add​(Block e)
        Specified by:
        add in interface java.util.ListIterator<Block>