Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstraintMap<K, V>

Type parameters

Hierarchy

  • ConstraintMap

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ConstraintMap<K, V>(index?: {}, array?: [K, V][]): ConstraintMap<K, V>
  • Type parameters

    Parameters

    • Optional index: {}
      • [id: number]: number | undefined
    • Optional array: [K, V][]

    Returns ConstraintMap<K, V>

Properties

Readonly array

array: [K, V][]

Readonly index

index: {}

Type declaration

  • [id: number]: number | undefined

Accessors

size

  • get size(): number
  • Returns number

Methods

clear

  • clear(): void
  • Returns void

clone

  • Returns ConstraintMap<K, V>

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

forEach

  • forEach<T>(callback: (key: K, value: V) => void | T): undefined | T
  • forEach<T, S>(callback: (key: K, value: V) => void | T, thisArg: S): undefined | T
  • Type parameters

    • T

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    • thisArg: S

    Returns undefined | T

get

  • get(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

getEntry

  • getEntry(k: number): undefined | [K, V]
  • Parameters

    • k: number

    Returns undefined | [K, V]

getField

  • getField(key: K): undefined | [K, V]
  • Parameters

    • key: K

    Returns undefined | [K, V]

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

remove

  • remove(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

set

  • set(key: K, newValue: V): undefined | V
  • Parameters

    • key: K
    • newValue: V

    Returns undefined | V

Generated using TypeDoc