Class BasePositionIterator

java.lang.Object
me.hsgamer.hscore.minecraft.block.iterator.AbstractPositionIterator
me.hsgamer.hscore.minecraft.block.iterator.BasePositionIterator
All Implemented Interfaces:
Iterator<Position>, PositionIterator
Direct Known Subclasses:
LinearPositionIterator, RandomPositionIterator

public abstract class BasePositionIterator extends AbstractPositionIterator
  • Constructor Details

  • Method Details

    • getCurrent

      public Position getCurrent()
      Get the current Position
      Returns:
      the current position
    • initial

      public abstract Position initial()
      Get the initial Position
      Returns:
      the initial position
    • getContinue

      public abstract Position getContinue(Position current) throws NoSuchElementException
      Get the next Position
      Parameters:
      current - the current position
      Returns:
      the next position
      Throws:
      NoSuchElementException - if there is no next position
    • hasContinue

      public abstract boolean hasContinue(Position current)
      Check if there is a next Position
      Parameters:
      current - the current position
      Returns:
      true if there is a next position
    • reset

      public void reset()
      Description copied from interface: PositionIterator
      Reset the iterator
    • hasNext

      public boolean hasNext()
    • next

      public Position next()