Class UnmodifiableIntegerArrayDBIDs.Itr

    • Constructor Detail

    • 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.
      • 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
      • getOffset

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object