Package ucar.nc2.ft
Interface PointFeatureCCIterator
-
- All Superinterfaces:
AutoCloseable
,Closeable
,IOIterator<PointFeatureCC>
- All Known Implementing Classes:
PointFeatureCCIteratorFiltered
public interface PointFeatureCCIterator extends Closeable, IOIterator<PointFeatureCC>
An iterator over PointFeatureCC. Use try-with-resource to make sure resources are released:try (PointFeatureCCIterator iter = getIter()) { while (iter.hasNext()) process(iter.next()); }
- Since:
- Mar 20, 2008
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PointFeatureCCIterator.Filter
A filter on nestedPointFeatureCollection
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Make sure that the iterator is complete, and recover resources.boolean
hasNext()
true if another Feature object is availablePointFeatureCC
next()
Returns the next NestedPointFeatureCollection object You must call hasNext() before calling next(), even if you know it will return true.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws IOException
true if another Feature object is available- Specified by:
hasNext
in interfaceIOIterator<PointFeatureCC>
- Returns:
- true if another Feature object is available
- Throws:
IOException
- on i/o error
-
next
PointFeatureCC next() throws IOException
Returns the next NestedPointFeatureCollection object You must call hasNext() before calling next(), even if you know it will return true.- Specified by:
next
in interfaceIOIterator<PointFeatureCC>
- Returns:
- the next NestedPointFeatureCollection object
- Throws:
IOException
- on i/o error
-
close
void close()
Make sure that the iterator is complete, and recover resources. You must complete the iteration (until hasNext() returns false) or call close(). may be called more than once.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-