Package ucar.ma2
Class ArrayStructure.ArrayStructureIterator
- java.lang.Object
-
- ucar.ma2.ArrayStructure.ArrayStructureIterator
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<StructureData>
,StructureDataIterator
- Enclosing class:
- ArrayStructure
public class ArrayStructure.ArrayStructureIterator extends Object implements StructureDataIterator, Iterator<StructureData>
-
-
Constructor Summary
Constructors Constructor Description ArrayStructureIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayStructure
getArrayStructure()
int
getCurrentRecno()
boolean
hasNext()
See if theres more StructureData in the iteration.StructureData
next()
Get the next StructureData in the iteration.StructureDataIterator
reset()
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 java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface ucar.ma2.StructureDataIterator
close, finish, setBufferSize
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:StructureDataIterator
See if theres more StructureData in the iteration. You must always call this before calling next().- Specified by:
hasNext
in interfaceIterator<StructureData>
- Specified by:
hasNext
in interfaceStructureDataIterator
- Returns:
- true if more records are available
-
next
public StructureData next()
Description copied from interface:StructureDataIterator
Get the next StructureData in the iteration.- Specified by:
next
in interfaceIterator<StructureData>
- Specified by:
next
in interfaceStructureDataIterator
- Returns:
- next StructureData record.
-
reset
public StructureDataIterator reset()
Description copied from interface:StructureDataIterator
Start the iteration over again.- Specified by:
reset
in interfaceStructureDataIterator
- Returns:
- a new or reset iterator.
-
getCurrentRecno
public int getCurrentRecno()
- Specified by:
getCurrentRecno
in interfaceStructureDataIterator
-
getArrayStructure
public ArrayStructure getArrayStructure()
-
-