The type of elements in the collection.
ReadonlycapacityThe maximum number of elements the collection can hold.
If the collection is unbounded, this will be Infinity.
Protected ReadonlydataRemoves all elements from the collection.
Returns the number of elements in the collection.
Replaces the first occurence of the item matching the given predicate in the collection with a new item.
true if the item was found and replaced, false otherwise.
Interface representing a collection of elements.