Mutable Lookup Collection
Mutable lookup collection provides methods to modify its content
Note. Lookup.Mutable does not extend Collection.Mutable, because it is impossible to reconsile update operations.
- Source
- __.scala
Def
Get or create key/value association
Get or create key/value association
Returns existent value assisiated with the given key.
If the association does not exist, it will be created with the given default value, and then same value will be returned.
- Source
- __.scala
Create key/value association
Create key/value association
If given key entry already exists, it will be overridden with given value
If given key entry does not exist, it will be added, with collection increasing in size
- Source
- __.scala
Remove key association
Remove key association
Removes given key and value associated with it
Optionally returns the removed value, if it was indeed removed.
- Source
- __.scala
Remove milti key associations
Remove milti key associations
Removes given stream of keys and values associated with them
Returns stream of removed values
- Source
- __.scala