- Preparing search index...
- The search index is not available
Balek
Constructors
constructor
- new FixedSizeArray<T>(maxSize: number): FixedSizeArray<T>
-
Properties
Private
Readonly
data
data: T[]
Private
Readonly
maxSize
maxSize: number
Methods
add
- add(item: T): void
-
Returns void
forEach
- forEach(callback: ((item: T, index: number, array: T[]) => void)): void
-
Parameters
-
callback: ((item: T, index: number, array: T[]) => void)
-
- (item: T, index: number, array: T[]): void
-
Parameters
-
item: T
-
index: number
-
array: T[]
Returns void
Returns void
getData
- getData(): T[]
-
Returns T[]
A class that represents a fixed-size array that removes the oldest item when a new item is added and the size exceeds the maximum.