Type parameters

  • T

Hierarchy

Implements

Index

Properties

list

list: T[] = []

Accessors

count

  • get count(): number
  • Gets the number of elements contained in the CollectionBase instance.

    Returns number

length

  • get length(): number
  • Returns number

Methods

add

  • add(value: T): void
  • Parameters

    • value: T

    Returns void

addRange

clear

  • clear(): void
  • Removes all objects from the CollectionBase instance.

    Returns void

contains

  • contains(item: T | any): boolean
  • Parameters

    • item: T | any

    Returns boolean

getByIndex

  • getByIndex(index: number): T

indexOf

  • indexOf(item: T): number
  • Parameters

    • item: T

    Returns number

insert

  • insert(index: number, value: T): void
  • Parameters

    • index: number
    • value: T

    Returns void

remove

  • remove(item: T): void
  • Parameters

    • item: T

    Returns void

removeAt

  • removeAt(index: number): void

setByIndex

  • setByIndex(index: number, value: T): void
  • Parameters

    • index: number
    • value: T

    Returns void

toCast

  • toCast<C>(): C[]

toList

Generated using TypeDoc