Class SampleDataAccessFeatureIterator
Object
SampleDataAccessFeatureIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,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.- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SampleDataAccessFeatureIterator
Constructor.- Parameters:
iterator- iterator to which all iteration is delegated.
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:FeatureIteratorDoes 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:
hasNextin interfaceFeatureIterator<Feature>- Returns:
- true if more Features exist, false otherwise.
- See Also:
-
next
Description copied from interface:FeatureIteratorGet the next Feature in this iteration.- Specified by:
nextin interfaceFeatureIterator<Feature>- Returns:
- The next Feature
- See Also:
-
remove
public void remove()- See Also:
-
close
public void close()Nothing to close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFeatureIterator<Feature>- See Also:
-