diff options
author | Tobias Roeser <le.petit.fou@web.de> | 2018-10-29 10:12:57 +0100 |
---|---|---|
committer | Tobias Roeser <le.petit.fou@web.de> | 2018-10-29 14:48:39 +0100 |
commit | b44e2b9f54a6edeb5ac46032147fcd5d51a6f376 (patch) | |
tree | 1b2c6ebe004a01cd2fd22a96a43c8a38eb17a65b /main/core/src | |
parent | 30983430f587216068e39a06c3e61b8a235f0bdd (diff) | |
download | mill-b44e2b9f54a6edeb5ac46032147fcd5d51a6f376.tar.gz mill-b44e2b9f54a6edeb5ac46032147fcd5d51a6f376.tar.bz2 mill-b44e2b9f54a6edeb5ac46032147fcd5d51a6f376.zip |
Fixed typo
Diffstat (limited to 'main/core/src')
-rw-r--r-- | main/core/src/mill/util/MultiBiMap.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/core/src/mill/util/MultiBiMap.scala b/main/core/src/mill/util/MultiBiMap.scala index 2cb81944..73bb42c4 100644 --- a/main/core/src/mill/util/MultiBiMap.scala +++ b/main/core/src/mill/util/MultiBiMap.scala @@ -2,10 +2,11 @@ package mill.util import scala.collection.mutable import Strict.Agg + /** * A map from keys to collections of values: you can assign multiple values * to any particular key. Also allows lookups in both directions: what values - * are assigned to a key or what key a value is assigned ti. + * are assigned to a key or what key a value is assigned to. */ trait MultiBiMap[K, V]{ def containsValue(v: V): Boolean @@ -22,6 +23,7 @@ trait MultiBiMap[K, V]{ } object MultiBiMap{ + class Mutable[K, V]() extends MultiBiMap[K, V]{ private[this] val valueToKey = mutable.LinkedHashMap.empty[V, K] private[this] val keyToValues = mutable.LinkedHashMap.empty[K, Agg.Mutable[V]] |