Class PointIteratorEmpty

    • Constructor Detail

      • PointIteratorEmpty

        public PointIteratorEmpty()
    • Method Detail

      • hasNext

        public boolean hasNext()
        Description copied from interface: PointFeatureIterator
        Check if another PointFeature is available.

        Since this iterator may be used in a for-each statement, implementations should close it the first time this method returns false, as it may not get closed otherwise.

        Returns:
        true if another PointFeature is available
      • next

        public PointFeature next()
        Description copied from interface: PointFeatureIterator
        Returns the next PointFeature. You must call hasNext() before calling next(), even if you know it will return true.
        Returns:
        the next PointFeature
      • close

        public void close()
        Description copied from interface: PointFeatureIterator
        Make sure that the iterator is complete, and recover resources. You must complete the iteration (until hasNext() returns false) or call close(). It may be called more than once (idempotent).