Class SampleDataAccessFeatureIterator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, FeatureIterator<Feature>

    public class SampleDataAccessFeatureIterator
    extends Object
    implements FeatureIterator<Feature>
    Decorator for Iterator<Feature> to provide a FeatureIterator<Feature> that adds a close method that does nothing. This class exists only to satisfy the FeatureCollection API. All iteration is performed using the iterator passed to the constructor.
    Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Nothing to close.
      boolean hasNext()
      Does another Feature exist in this Iteration.
      Feature next()
      Get the next Feature in this iteration.
      void remove()  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SampleDataAccessFeatureIterator

        public SampleDataAccessFeatureIterator​(Iterator<Feature> iterator)
        iterator - iterator to which all iteration is delegated.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Description copied from interface: FeatureIterator
        Does another Feature exist in this Iteration.

        Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

        Specified by:
        hasNext in interface FeatureIterator<Feature>
        true if more Features exist, false otherwise.
        See Also:
      • remove

        public void remove()
        See Also: