Module math

Interface ArrayIter

All Superinterfaces:
Iter
All Known Implementing Classes:
ArrayListIter

public interface ArrayIter extends Iter
Array iterators can also go backwards and seek.
Author:
Erich Schubert
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    advance(int count)
    Moves the iterator forward or backward by the given offset.
    int
    Get current iterator offset.
    void
    Moves the iterator backward to the previous entry.
    void
    seek(int off)
    Moves the iterator to the given position

    Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.datastructures.iterator.Iter

    advance, valid
  • Method Details

    • getOffset

      int getOffset()
      Get current iterator offset.
      Returns:
      Iterator position
    • advance

      void advance(int count)
      Moves the iterator forward or backward by the given offset.
      Parameters:
      count - offset to move forward or backwards
    • retract

      void retract()
      Moves the iterator backward to the previous entry.
    • seek

      void seek(int off)
      Moves the iterator to the given position
      Parameters:
      off - Seek offset