Class NameMultiMap<V>

MultiMap keyed by name. Lookups may accept either name or name.valueHex.

Type Parameters

  • V

Hierarchy (View Summary)

Constructors

Accessors

  • get dimension(): number
  • Number of distinct keys.

    Returns number

  • get size(): number
  • Number of values.

    Returns number

Methods

  • Iterate over key-value pairs.

    Returns IterableIterator<[key: Name, value: V], any, any>

  • Add a key-value pair. Values are stored in a Set, so duplicates are skipped.

    Parameters

    Returns number

    count(key) after the operation.

  • Iterate over key and associated values.

    Returns IterableIterator<[key: Name, values: ReadonlySet<V>], any, any>

  • Count values associated with a key.

    Parameters

    Returns number

  • List values associated with a key.

    Parameters

    Returns ReadonlySet<V>

  • Remove a key-value pair. No-op if key-value does not exist.

    Parameters

    • key: string | Name
    • value: V

    Returns number

    count(key) after the operation.