Class IntegerDBIDPair.Itr

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int first
      State
      (package private) int pos
      State
      (package private) int second
      State
    • Constructor Summary

      Constructors 
      Constructor Description
      Itr​(int first, int second)
      Constructor.
    • Field Detail

      • first

        int first
        State
      • second

        int second
        State
      • pos

        int pos
        State
    • Constructor Detail

      • Itr

        public Itr​(int first,
                   int second)
        Constructor.
        Parameters:
        first - First ID
        second - Second ID
    • Method Detail

      • valid

        public boolean valid()
        Description copied from interface: Iter
        Returns true if the iterator currently points to a valid object.
        Specified by:
        valid in interface Iter
        Returns:
        a boolean value, whether the position is valid.
      • getOffset

        public int getOffset()
        Description copied from interface: ArrayIter
        Get current iterator offset.
        Specified by:
        getOffset in interface ArrayIter
        Returns:
        Iterator position
      • advance

        public DBIDArrayIter advance​(int count)
        Description copied from interface: ArrayIter
        Moves the iterator forward or backward by the given offset.
        Specified by:
        advance in interface ArrayIter
        Specified by:
        advance in interface DBIDArrayIter
        Parameters:
        count - offset to move forward or backwards
        Returns:
        Iterator
      • seek

        public DBIDArrayIter seek​(int off)
        Description copied from interface: ArrayIter
        Moves the iterator to the given position
        Specified by:
        seek in interface ArrayIter
        Specified by:
        seek in interface DBIDArrayIter
        Parameters:
        off - Seek offset
        Returns:
        Iterator