Package ucar.nc2.ft.point
Class StructureDataIteratorLinked
- java.lang.Object
-
- ucar.nc2.ft.point.StructureDataIteratorLinked
-
- All Implemented Interfaces:
Closeable,AutoCloseable,StructureDataIterator
public class StructureDataIteratorLinked extends Object implements StructureDataIterator
Use contiguous or linked lists to iterate over members of a Structure- Since:
- Mar 26, 2008
-
-
Constructor Summary
Constructors Constructor Description StructureDataIteratorLinked(Structure s, int firstRecord, int numRecords, String linkVarName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentRecno()booleanhasNext()See if theres more StructureData in the iteration.StructureDatanext()Get the next StructureData in the iteration.StructureDataIteratorreset()Start the iteration over again.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.ma2.StructureDataIterator
close, finish, setBufferSize
-
-
-
-
Method Detail
-
next
public StructureData next() throws IOException
Description copied from interface:StructureDataIteratorGet the next StructureData in the iteration.- Specified by:
nextin interfaceStructureDataIterator- Returns:
- next StructureData record.
- Throws:
IOException- on read error
-
hasNext
public boolean hasNext()
Description copied from interface:StructureDataIteratorSee if theres more StructureData in the iteration. You must always call this before calling next().- Specified by:
hasNextin interfaceStructureDataIterator- Returns:
- true if more records are available
-
reset
public StructureDataIterator reset()
Description copied from interface:StructureDataIteratorStart the iteration over again.- Specified by:
resetin interfaceStructureDataIterator- Returns:
- a new or reset iterator.
-
getCurrentRecno
public int getCurrentRecno()
- Specified by:
getCurrentRecnoin interfaceStructureDataIterator
-
-