Class IntegerDBIDVar.Itr

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int pos
      Iterator position: We use an integer so we can support retract().
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Itr()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IntegerDBIDVar.Itr advance()
      Moves the iterator forward to the next entry.
      IntegerDBIDVar.Itr advance​(int count)
      Moves the iterator forward or backward by the given offset.
      boolean equals​(java.lang.Object other)
      WARNING: calling equality on a reference may be an indicator of incorrect usage, as it is not clear whether the programmer meant the references to be the same or the DBIDs.
      int getOffset()
      Get current iterator offset.
      int hashCode()
      WARNING: Hash codes of this interface might not be stable (e.g., for iterators).
      int internalGetIndex()
      Return the integer value of the object ID.
      IntegerDBIDVar.Itr retract()
      Moves the iterator backward to the previous entry.
      IntegerDBIDVar.Itr seek​(int off)
      Moves the iterator to the given position
      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, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • pos

        int pos
        Iterator position: We use an integer so we can support retract().
    • Constructor Detail

      • Itr

        protected Itr()