Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = any

Hierarchy

  • mxDictionary

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

map

map: {}

Function: map

Stores the (key, value) pairs in this dictionary.

Type declaration

  • [key: string]: T

Methods

clear

  • clear(): void

get

  • get(key: any): T

getKeys

  • getKeys(): string[]

getValues

  • getValues(): T[]

put

  • put(key: any, value: T): T
  • Function: put

    Stores the value under the given key and returns the previous value for that key.

    Parameters

    • key: any
    • value: T

    Returns T

remove

  • remove(key: string): T
  • Function: remove

    Removes the value for the given key and returns the value that has been removed.

    Parameters

    • key: string

    Returns T

visit

  • visit(visitor: (key: string, value: T) => void): void
  • Function: visit

    Visits all entries in the dictionary using the given function with the following signature: function(key, value) where key is a string and value is an object.

    Parameters:

    visitor - A function that takes the key and value as arguments.

    Parameters

    • visitor: (key: string, value: T) => void
        • (key: string, value: T): void
        • Parameters

          • key: string
          • value: T

          Returns void

    Returns void

Generated using TypeDoc