Class FastutilIntOpenHashSetModifiableDBIDs.Itr

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) it.unimi.dsi.fastutil.ints.IntIterator it
      The actual iterator.
      (package private) int prev
      Current value.
    • Constructor Summary

      Constructors 
      Constructor Description
      Itr​(it.unimi.dsi.fastutil.ints.IntIterator it)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IntegerDBIDMIter advance()
      Moves the iterator forward to the next entry.
      int internalGetIndex()
      Internal only: Get the internal index.
      void remove()
      Remove the object the iterator currently points to.
      java.lang.String toString()  
      boolean valid()
      Returns true if the iterator currently points to a valid object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • it

        it.unimi.dsi.fastutil.ints.IntIterator it
        The actual iterator.
      • prev

        int prev
        Current value.
    • Constructor Detail

      • Itr

        public Itr​(it.unimi.dsi.fastutil.ints.IntIterator it)
        Constructor.
        Parameters:
        it - Int set iterator
    • 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 IntegerDBIDMIter advance()
        Description copied from interface: Iter
        Moves the iterator forward to the next entry.
        Specified by:
        advance in interface DBIDIter
        Specified by:
        advance in interface Iter
        Returns:
        The iterator itself.
      • internalGetIndex

        public int internalGetIndex()
        Description copied from interface: DBIDRef
        Internal only: Get the internal index.

        NOT FOR PUBLIC USE - ELKI Optimization engine only.

        Specified by:
        internalGetIndex in interface DBIDRef
        Specified by:
        internalGetIndex in interface IntegerDBIDRef
        Returns:
        Internal index
      • toString

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