Package net.imglib2
Interface Iterator
-
- All Known Subinterfaces:
Cursor<T>,ProjectedSampler<T>,RealCursor<T>
- All Known Implementing Classes:
AbstractArrayCursor,AbstractArrayLocalizingCursor,AbstractConvertedCursor,AbstractConvertedRealCursor,AbstractCursor,AbstractCursorInt,AbstractLocalizingCursor,AbstractLocalizingCursorInt,AbstractLongListImg.LongListCursor,AbstractLongListImg.LongListLocalizingCursor,ArrayCursor,ArrayLocalizingCursor,ArrayLocalizingSubIntervalCursor,ArraySubIntervalCursor,BiConvertedCursor,BiConvertedRealCursor,CellCursor,CellLocalizingCursor,ConvertedCursor,ConvertedRealCursor,IntervalIterator,IntervalSampler,KDTree.KDTreeCursor,ListCursor,ListLocalizingCursor,LocalizingIntervalIterator,LocalizingRealIntervalIterator,LocalizingZeroMinIntervalIterator,NtreeCursor,OffsetableIntervalIterator,OffsetableLocalizingIntervalIterator,PlanarCursor,PlanarCursor1D,PlanarCursor2D,PlanarLocalizingCursor,PlanarLocalizingCursor1D,PlanarLocalizingCursor2D,PlanarPlaneSubsetCursor,PlanarPlaneSubsetLocalizingCursor,PointSampleList.PointSampleListCursor,RandomAccessibleIntervalCursor,RealPointSampleList.RealPointSampleListCursor,SelectiveSampler,SlicingCursor,WriteConvertedCursor,WriteConvertedRealCursor,ZeroMinIntervalIterator
public interface Iterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidfwd()Move forward.booleanhasNext()Returns true if another step forward is possible.default voidjumpFwd(long steps)Move steps × forward.voidreset()Reset theIterator, that is put it to where it would be if newly created.
-
-
-
Method Detail
-
jumpFwd
default void jumpFwd(long steps)
Move steps × forward.Highly recommended to override this with a more efficient version.
- Parameters:
steps- number of steps to move forward
-
fwd
void fwd()
Move forward.
-
reset
void reset()
Reset theIterator, that is put it to where it would be if newly created.
-
hasNext
boolean hasNext()
Returns true if another step forward is possible.- Returns:
- true, if there is another step forward is possible, otherwise false
-
-