SetBase

constructor(capacity: Int)

Construct a new set with a {@link com.sap.cloud.mobile.kotlin.odata.SetBase#size SetBase.size} of zero and specified initial capacity. A set can expand in size beyond its initial capacity, but best performance will be obtained if the initial capacity is close to (and not less than) the set's maximum size.

Parameters

capacity

Initial capacity.