Returns the index of the ending value in this HistoryList. The ending value is the newest value in this HistoryList.
the index of the ending value in this HistoryList, or –1 if nothing has been stored
when the index number exceeds the maximum representable integer
Returns a HistoryIterator which begins at the given index in this HistoryList.
Optional
index: numberthe index to start the iterator at; if undefined or –1, then starts at beginning of this HistoryList
a HistoryIterator which begins at the given index in this HistoryList.
Stores the given value into this HistoryList.
the value to store
index within HistoryList where the value was stored
when the index number exceeds the maximum representable integer
Generated using TypeDoc
An ordered list of values that can be added to but not altered; older values might be forgotten. Each value has a unique unchanging index in the HistoryList, but a HistoryList has a limited capacity and old values will be dropped if necessary from the HistoryList to make room for new values to be added.
HistoryList contains only those values whose index is between getStartIndex and getEndIndex (inclusive). The start and end index can change when writing a new value to the list, because a new value might overwrite an old value.
The type of value stored can be number, string, boolean or any object. When using HistoryList you can specify to the compiler the type of the value with angle brackets. For example
HistoryList<!Vector>
indicates storing non-null Vectors in the HistoryList.