TObjectArrayList<T> Class

Definition

Provides a resizable array-backed list for object references.

Delphi
TObjectArrayList<T: class> = class(TArrayList<T>)

Type Parameters

T

The type of objects in the list.

Inheritance
TInterfacedObject
TObjectArrayList<T>

Remarks

When OwnsObjects is true, the list frees contained objects when they are removed, deleted, cleared, or when the list is destroyed. Assigning a new value through the inherited Items property does not free the object being replaced.

Constructors

Create(Boolean)

Initializes a new instance of the TObjectArrayList<T> class.

Create

Initializes a new instance of the TArrayList<T> class.

(Inherited from TArrayList<T>)
Create(IEqualityComparer<T>)

Initializes a new instance of the TArrayList<T> class with an equality comparer.

(Inherited from TArrayList<T>)
Destroy

Releases the resources used by the object list.

Properties

Count (Inherited from TArrayList<T>)
Items[Integer] (Inherited from TArrayList<T>)
OwnsObjects

Gets a value indicating whether the list owns the objects it contains.

Methods

Add(T) (Inherited from TArrayList<T>)
AddRange(IEnumerable<T>) (Inherited from TArrayList<T>)
AddRange(array of T) (Inherited from TArrayList<T>)
Clear

Removes all objects from the list.

Contains(T) (Inherited from TArrayList<T>)
Delete(Integer)

Deletes the object at the specified index.

GetEnumerator (Inherited from TArrayList<T>)
IndexOf(T) (Inherited from TArrayList<T>)
Insert(Integer, T) (Inherited from TArrayList<T>)
IsEmpty (Inherited from TArrayList<T>)
Remove(T) (Inherited from TArrayList<T>)
Sort (Inherited from TArrayList<T>)
Sort(IComparer<T>) (Inherited from TArrayList<T>)
Sort(TComparison<T>) (Inherited from TArrayList<T>)