Options
All
  • Public
  • Public/Protected
  • All
Menu

A map from flags to objects of some other type. Used as a simple wrapper for a dictionary, so that one doesn't constantly have to call .toString() on the flags.

Type parameters

  • T

    The type of the Flag objects used as keys.

  • U

    The type of the values.

Hierarchy

  • FlagMap

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

dictionary

dictionary: {}

The internal dictionary used to actually do the mapping.

Type declaration

  • [key: string]: U

Methods

clone

get

  • get(key: Flag<T> | string): U

set

  • set(key: Flag<T> | string, value: U): void
  • Sets the value associated to a flag.

    Parameters

    • key: Flag<T> | string

      The flag to use as a key.

    • value: U

      The new value that will be associated to the flag.

    Returns void

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM