maxSize

open fun maxSize(): Int

Gets the maximum size of the collection (the bound).

Return

the maximum number of elements the collection can hold