ArrayList.EnsureCapacity(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Increases the capacity of this ArrayList
instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument.
[Android.Runtime.Register("ensureCapacity", "(I)V", "GetEnsureCapacity_IHandler")]
public virtual void EnsureCapacity (int minCapacity);
[<Android.Runtime.Register("ensureCapacity", "(I)V", "GetEnsureCapacity_IHandler")>]
abstract member EnsureCapacity : int -> unit
override this.EnsureCapacity : int -> unit
Parameters
- minCapacity
- Int32
the desired minimum capacity
- Attributes
Remarks
Increases the capacity of this ArrayList
instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
Java documentation for java.util.ArrayList.ensureCapacity(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.