Class AbstractMetaIterator

    • Constructor Detail

      • AbstractMetaIterator

        public AbstractMetaIterator​(Iterator<CellLocation> base)
        Initializes the iterator.
        Parameters:
        base - the base iterator to use
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns whether another cell location is available.
        Specified by:
        hasNext in interface Iterator<CellLocation>
        Returns:
        true if another is available
      • process

        protected abstract CellLocation process​(CellLocation location)
        Processes the cell location.
        Parameters:
        location - the location to process
        Returns:
        the processed location
      • remove

        public void remove()
        Removes from the underlying collection the last element returned by the iterator (optional operation), if the base iterator supports this.
        Specified by:
        remove in interface Iterator<CellLocation>