Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface List<T>

Type parameters

  • T

Hierarchy

Implemented by

Index

Methods

__@iterator

  • __@iterator(): Iterator<T>

add

  • add(t: T): boolean
  • Parameters

    • t: T

    Returns boolean

    true if this collection changed as a result of the call

addAll

  • Parameters

    Returns boolean

    true if this collection changed as a result of the call

addIndex

  • addIndex(index: number, t: T): void
  • Parameters

    • index: number
    • t: T

    Returns void

clear

  • clear(): void

contains

  • contains(t: T): boolean

forEach

get

  • get(index: number): T

immutableCollection

immutableList

indexOf

  • indexOf(t: T): number
  • Parameters

    • t: T

    Returns number

    the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element

isEmpty

  • isEmpty(): boolean

iterator

lastIndexOf

  • lastIndexOf(t: T): number
  • Parameters

    • t: T

    Returns number

    the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element

remove

  • remove(t: T): boolean

removeAll

removeIndex

  • removeIndex(index: number): T
  • Parameters

    • index: number

    Returns T

    the element that was removed from the list, undefined if the element does not exist

set

  • set(index: number, element: T): T
  • Parameters

    • index: number
    • element: T

    Returns T

    the element previously at the specified position

size

  • size(): number

Generated using TypeDoc