Provides access to items in a CircularList. Call nextValue to get to the first item.

To do incremental drawing, we need to know about our place in the circular list. So we need the getIndex method to remember where we left off during the iteration.

Type Parameters

  • T

Implements

Constructors

Properties

first_: boolean

Flag indicates we are at start of the iteration.

Methods

  • Returns the index of the current value. In a HistoryList the index starts at zero and increases as each value is added to the HistoryList.

    Returns number

    the index of the current value

    Throws

    when the index number exceeds the maximum representable integer

Generated using TypeDoc