ArrayVector

Description

sealed class Tinman.Core.Collections.ArrayVector<T>

Derived from

VectorBase<T> abstract
IArrayVector<T>
ICapacityVector

An implementation of the IVector interface that uses a dynamic array for storing the list elements.

Public / Constructors

Array​Vector

2 overloads


public constructor ArrayVector1 → (1)

capacity opt : int32 = 12

[>=0]
The initial capacity.

Creates a new instance of ArrayVector.

The equality delegate is SystemUtilGeneric.EqualsDefault.


public constructor ArrayVector2 → (2)

equals in : EqualsDelegate<T>

The equality delegate. If null, SystemUtilGeneric.EqualsDefault will be used.

capacity opt : int32 = 12

[>=0]
The initial capacity.

Creates a new instance of ArrayVector.

Copy


public static method Copy → (2)

values in : IBagConst<T>

The values to wrap or null to create an empty list.

equals opt : EqualsDelegate<T> = null

The equality delegate. If null, SystemUtilGeneric.EqualsDefault will be used.

returns → ArrayVector<T>

The created ArrayVector object.

Copies the given values in into a compact ArrayVector.

Public / Methods

Clear​Dirty


public method ClearDirty → ()

Removes all elements from this collection, without setting the element values to their defaults.