add

abstract fun add(key: K, value: V): Boolean

Adds an association from the given key to the given value

Return

True because the multimap is always modified as the result of this operation

Parameters

key

The key to associate

value

The value to associate


abstract fun add(key: K, index: Int, value: V)

Adds an association from the given key to the given value, inserting it at the given index in the list of values already associated with the key.

Parameters

key

The key to associate

index

The index at which to insert value in the list of associated values

value

The value to associate