A MultiMap can have multiple values per key.

Type Parameters

  • K

    the key type

  • V

    the value type

Hierarchy

Implemented by

Properties

[toStringTag]: string
size: number

Returns

the number of entries in this MultiMap

Methods

  • Returns Iterator<Entry<K, V>, any, undefined>

  • Deletes the key with all its values.

    Returns

    true if an entry was deleted, otherwise false

    Parameters

    • key: K

      the key to delete

    Returns boolean

  • Deletes the first entry with the given key and value.

    Returns

    true if an entry was deleted, otherwise false

    Parameters

    • key: K

      the key to look for

    • value: V

      the value to delete

    Returns boolean

  • Checks if this MultiMap contains an entry for this key.

    See

    Map.has

    Returns

    true if an entry with the given key exists, otherwise false

    Parameters

    • key: K

      the key to look up

    Returns boolean

  • Checks if this MultiMap contains an entry with the key and value.

    See

    Map.has

    Returns

    true if an entry with the given key and value exists, otherwise false

    Parameters

    • key: K

      the key to look up

    • value: V

      the value to look for

    Returns boolean

Generated using TypeDoc