Home Reference Source
public class | source

Multimap

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

size: number: *

Private Members
private

_map: Map<K, V>

Method Summary

Public Methods
public

[util.inspect.custom](depth: *, options: *): string

public

clear()

public

delete(key: K, value: V): boolean

public

deleteAll(key: K)

public

firstKey(): K

public

firstValue(key: K): V

public

get(key: K): Set<V>

public

has(key: K): boolean

public

hasValue(key: K, value: V): boolean

public

keys(): Array<K>

public

set(key: K, value: V)

public

values(): Array<V>

Public Constructors

public constructor() source

Public Members

public get size: number: * source

Return:

number

Private Members

private _map: Map<K, V> source

Public Methods

public [util.inspect.custom](depth: *, options: *): string source

Params:

NameTypeAttributeDescription
depth *
options *

Return:

string

public clear() source

public delete(key: K, value: V): boolean source

Params:

NameTypeAttributeDescription
key K
value V

Return:

boolean

public deleteAll(key: K) source

Params:

NameTypeAttributeDescription
key K

public firstKey(): K source

Return:

K

public firstValue(key: K): V source

Params:

NameTypeAttributeDescription
key K

Return:

V

public get(key: K): Set<V> source

Params:

NameTypeAttributeDescription
key K

Return:

Set<V> (nullable: false)

public has(key: K): boolean source

Params:

NameTypeAttributeDescription
key K

Return:

boolean

public hasValue(key: K, value: V): boolean source

Params:

NameTypeAttributeDescription
key K
value V

Return:

boolean

public keys(): Array<K> source

Return:

Array<K>

public set(key: K, value: V) source

Params:

NameTypeAttributeDescription
key K
value V

public values(): Array<V> source

Return:

Array<V>