Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MakeAbstractList_Methods<T, InsertArgs>

Type Parameters

  • T

  • InsertArgs extends unknown[] = [T]

Hierarchy

  • MakeAbstractList_Methods

Index

Methods

  • [iterator](): IterableIterator<T>
  • clear(): void
  • Calls delete on every value in the list, in reverse order.

    Override this method if you want to optimize this behavior.

    Returns void

  • forEach(callbackfn: ((value: T, index: number, list: MakeAbstractList_Methods<T, InsertArgs>) => void), thisArg?: any): void
  • getByPosition(position: string): undefined | T
  • Returns get(indexOfPosition(position)).

    Override this method if you want to optimize this behavior.

    Parameters

    • position: string

    Returns undefined | T

  • hasPosition(position: string): boolean
  • Returns indexOfPosition(position) !== -1.

    Override this method if you want to optimize this behavior.

    Parameters

    • position: string

    Returns boolean

  • indexOf(searchElement: T, fromIndex?: number): number
  • positionOf(searchElement: T): undefined | string
  • Returns getPosition(indexOf(value)).

    Override this method if you want to optimize this behavior. If you do so, you probably also want to override indexOf to call this method instead of doing a linear search.

    Parameters

    • searchElement: T

    Returns undefined | string

  • positions(): IterableIterator<string>
  • push(...args: InsertArgs): undefined | T
  • slice(start?: number, end?: number): T[]
  • toString(): string
  • unshift(...args: InsertArgs): undefined | T
  • values(): IterableIterator<T>

Generated using TypeDoc