X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FCircularArray.ts;h=feb5e3e2b66fb99aef38c6d24db1a6c5eafccfe1;hb=1ba1e8fb644aa0ba8c0295c9eedb6f63e5467459;hp=227165fb5ac50d775a72944ca6528973120a48ab;hpb=35e159338bbcee30067b8f3561a2c81011a0d390;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/CircularArray.ts b/src/utils/CircularArray.ts index 227165fb..feb5e3e2 100644 --- a/src/utils/CircularArray.ts +++ b/src/utils/CircularArray.ts @@ -1,5 +1,8 @@ -export const DEFAULT_CIRCULAR_ARRAY_SIZE = 2000; +// Copyright Jerome Benoit. 2021. All Rights Reserved. +export const DEFAULT_CIRCULAR_ARRAY_SIZE = Number.MAX_SAFE_INTEGER; + +/** Array with a maximum length shifting items when full. */ export class CircularArray extends Array { public size: number;