Class IntegerDBIDRange.Itr

    • Field Summary

      Modifier and Type Field Description
      private int len
      Interval length.
      private int pos
      Current position.
      private int start
      Interval start.
    • Constructor Summary

      Constructor Description
      Itr​(int start, int len)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IntegerDBIDRange.Itr advance()
      Moves the iterator forward to the next entry.
      IntegerDBIDRange.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 internalGetIndex()
      Return the integer value of the object ID.
      IntegerDBIDRange.Itr retract()
      Moves the iterator backward to the previous entry.
      IntegerDBIDRange.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, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • pos

        private int pos
        Current position.
      • len

        private final int len
        Interval length.
      • start

        private final int start
        Interval start.
    • Constructor Detail

      • Itr

        public Itr​(int start,
                   int len)
        start - Interval start
        len - Interval length