Package net.imglib2

Interface Iterator

All Known Subinterfaces:
Cursor<T>, ProjectedSampler<T>, RealCursor<T>
All Known Implementing Classes:
AbstractArrayCursor, AbstractArrayLocalizingCursor, AbstractConvertedCursor, AbstractCursor, AbstractCursorInt, AbstractLocalizingCursor, AbstractLocalizingCursorInt, AbstractLongListImg.LongListCursor, AbstractLongListImg.LongListLocalizingCursor, ArrayCursor, ArrayLocalizingCursor, ArrayLocalizingSubIntervalCursor, ArraySubIntervalCursor, CellCursor, CellLocalizingCursor, ConvertedCursor, IntervalIterator, IntervalSampler, KDTree.KDTreeCursor, ListCursor, ListLocalizingCursor, LocalizingIntervalIterator, LocalizingZeroMinIntervalIterator, NtreeCursor, OffsetableIntervalIterator, OffsetableLocalizingIntervalIterator, PlanarCursor, PlanarCursor1D, PlanarCursor2D, PlanarLocalizingCursor, PlanarLocalizingCursor1D, PlanarLocalizingCursor2D, PlanarPlaneSubsetCursor, PlanarPlaneSubsetLocalizingCursor, PointSampleList.PointSampleListCursor, RandomAccessibleIntervalCursor, RealPointSampleList.RealPointSampleListCursor, SelectiveSampler, SlicingCursor, WriteConvertedCursor, ZeroMinIntervalIterator

public interface Iterator
The Iterator interface provides basic functionality for iterating over a set of elements. The iteration order depends on the Iterator implementation.
Author:
Stephan Preibisch, Stephan Saalfeld
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fwd()
    Move forward.
    boolean
    Returns true if another step forward is possible.
    void
    jumpFwd(long steps)
    Move steps × forward.
    void
    Reset the Iterator, that is put it to where it would be if newly created.
  • Method Details

    • jumpFwd

      void jumpFwd(long steps)
      Move steps × forward.
      Parameters:
      steps - number of steps to move forward
    • fwd

      void fwd()
      Move forward.
    • reset

      void reset()
      Reset the Iterator, 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