IVector

Description

interface Tinman.Core.Collections.IVector<T>

Derived from

IBag<T>
IVectorConst<T>

Extended by

ListeningVector abstract
OrderedSet sealed
VectorBase abstract

Base interface for classes that represent a list of elements.

Public / Methods

Insert​At


public method InsertAt → (2)

index in : int32

[0..IBagConst.Count]
List index where to insert the element.

element in : T

The element to insert.

Inserts the given element into the list.

Remove​At


public method RemoveAt → (1)

index in : int32

[0..IBagConst.Count-1]
The list index.

returns → T

The removed element.

Removes the element at the given list index.

Remove​Range


public method RemoveRange → (2)

index in : int32

[0..IBagConst.Count]
List index of first element to remove.

count in : int32

[0..IBagConst.Count-index]
Number of subsequent elements to remove.

Removes a range of elements.

Set​At


public method SetAt → (2)

index in : int32

[0..IBagConst.Count-1]
The list index of the element to set.

element in : T

The new element.

returns → T

The previous element.

Sets the element at the given list index.