maxSize

maxSize(): Integer;

The maxSize method of the Collection class returns the maximum number of entries that a collection can contain.

Use the maxSize64 method instead of the maxSize method as the number of entries in the collection exceeds the maximum integer value of 2,147,483,647.