Interface ReadonlyMultiMap<K, V>

A ReadonlyMultiMap can have multiple values per key.

Type Parameters

  • K

    the key type

  • V

    the value type

Hierarchy

Properties

[toStringTag]: string
size: number

Returns

the number of entries in this MultiMap

Methods

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

  • Gets all values for this key.

    Returns an empty iterable if the key does not exist.

    Returns

    an Iterable containing all values for this key

    Parameters

    • key: K

      the key to look up

    Returns Iterable<V>

  • 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