diff options
author | Matthias Zenger <mzenger@gmail.com> | 2003-07-18 23:40:35 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2003-07-18 23:40:35 +0000 |
commit | bb9cfcedf14ed2589f4f6f807b89effbbb59c84e (patch) | |
tree | 466269599d79b071147161aa32071ab5ba9dcb7e /sources/scala/collection/mutable/SynchronizedMap.scala | |
parent | c1bcad868c80dd4fabdb03af70539cb21ecb187f (diff) | |
download | scala-bb9cfcedf14ed2589f4f6f807b89effbbb59c84e.tar.gz scala-bb9cfcedf14ed2589f4f6f807b89effbbb59c84e.tar.bz2 scala-bb9cfcedf14ed2589f4f6f807b89effbbb59c84e.zip |
More refactoring.
Diffstat (limited to 'sources/scala/collection/mutable/SynchronizedMap.scala')
-rw-r--r-- | sources/scala/collection/mutable/SynchronizedMap.scala | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/sources/scala/collection/mutable/SynchronizedMap.scala b/sources/scala/collection/mutable/SynchronizedMap.scala index 40a1e4e959..0837d95cb0 100644 --- a/sources/scala/collection/mutable/SynchronizedMap.scala +++ b/sources/scala/collection/mutable/SynchronizedMap.scala @@ -62,20 +62,28 @@ trait SynchronizedMap[A, B] extends scala.collection.mutable.Map[A, B] with Moni super.update(key, value); } - override def remove(key: A): Unit = synchronized { - super.remove(key); + override def -=(key: A): Unit = synchronized { + super.-=(key); } - override def clear: Unit = synchronized { - super.clear; + override def incl(mappings: Pair[A, B]*): Unit = synchronized { + super.incl(mappings); + } + + override def incl(map: Iterable[Pair[A, B]]): Unit = synchronized { + super.incl(map); } - override def put(mappings: Pair[A, B]*) = synchronized { - super.putMap(mappings); + override def excl(keys: A*): Unit = synchronized { + super.excl(keys); } - override def putMap(map: Iterable[Pair[A, B]]): Unit = synchronized { - super.putMap(map); + override def excl(keys: Iterable[A]): Unit = synchronized { + super.excl(keys); + } + + override def clear: Unit = synchronized { + super.clear; } override def map(f: (A, B) => B): Unit = synchronized { |