HashMultiMap
The HashMultiMap
class provides hash maps that use the Separate Chaining algorithm. It build on HashMap
allowing values to multi-valued Set [V]
and can be used for building Non-Unique Indices.
Type parameters
- K
-
the type of the keys contained in this hash map
- V
-
the base-type of the values assigned to keys in this hash map
Value parameters
- initialCap
-
the initial hash table size (number of slots)
- loadFactor
-
the load factor (number of keys over number of slots)
Attributes
- See also
-
scala.collection.mutable.HashMap
- Graph
-
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Add one key-value pair into this hash map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.
Add one key-value pair into this hash map and return this (called by put). The addOne method adds a set of values, whereas addOne1 adds a single value.
Value parameters
- elem
-
the key-value pair to add/insert for an individual value
Attributes
Show/print this HashMap.
Show/print this HashMap.
Attributes
Concrete fields
Exports
Defined exports
Deprecated defined exports
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ with an explicit collection argument instead of + with varargs
Attributes
- Deprecated
-
[Since version 2.13.0]
Consider requiring an immutable Map or fall back to Map.concat.
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use ++ instead of ++: for collections of type Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Attributes
- Deprecated
-
[Since version 2.13.0]
Use m.clone().addOne((k,v)) instead of m.updated(k, v)