summaryrefslogtreecommitdiff
path: root/sources/scala/collection/mutable/SynchronizedSet.scala
diff options
context:
space:
mode:
authorMatthias Zenger <mzenger@gmail.com>2004-05-10 13:07:01 +0000
committerMatthias Zenger <mzenger@gmail.com>2004-05-10 13:07:01 +0000
commitbd07456f926c31bb47f0009c54002b2b0e8379f5 (patch)
treec3a901417903ceaafc4a68b045f63d0978bc81a9 /sources/scala/collection/mutable/SynchronizedSet.scala
parent0c2b5967e0fd21a8f82b8e6b69412cf7c85581d4 (diff)
downloadscala-bd07456f926c31bb47f0009c54002b2b0e8379f5.tar.gz
scala-bd07456f926c31bb47f0009c54002b2b0e8379f5.tar.bz2
scala-bd07456f926c31bb47f0009c54002b2b0e8379f5.zip
Refactored class library.
Diffstat (limited to 'sources/scala/collection/mutable/SynchronizedSet.scala')
-rw-r--r--sources/scala/collection/mutable/SynchronizedSet.scala36
1 files changed, 28 insertions, 8 deletions
diff --git a/sources/scala/collection/mutable/SynchronizedSet.scala b/sources/scala/collection/mutable/SynchronizedSet.scala
index 7f5f764387..2d4c2d5767 100644
--- a/sources/scala/collection/mutable/SynchronizedSet.scala
+++ b/sources/scala/collection/mutable/SynchronizedSet.scala
@@ -30,28 +30,40 @@ trait SynchronizedSet[A] extends scala.collection.mutable.Set[A] {
super.contains(elem);
}
+ abstract override def update(elem: A, included: Boolean): Unit = synchronized {
+ super.update(elem, included);
+ }
+
abstract override def +=(elem: A): Unit = synchronized {
super.+=(elem);
}
- override def incl(elems: A*): Unit = synchronized {
- super.incl(elems);
+ override def ++=(that: Iterable[A]) = synchronized {
+ super.++=(that);
}
- override def incl(that: Iterable[A]) = synchronized {
- super.incl(that);
+ override def ++=(it: Iterator[A]) = synchronized {
+ super.++=(it);
+ }
+
+ override def incl(elems: A*): Unit = synchronized {
+ super.++=(elems);
}
abstract override def -=(elem: A): Unit = synchronized {
super.-=(elem);
}
- override def excl(elems: A*): Unit = synchronized {
- super.excl(elems);
+ override def --=(that: Iterable[A]) = synchronized {
+ super.--=(that);
}
- override def excl(that: Iterable[A]) = synchronized {
- super.excl(that);
+ override def --=(it: Iterator[A]) = synchronized {
+ super.--=(it);
+ }
+
+ override def excl(elems: A*): Unit = synchronized {
+ super.--=(elems);
}
override def intersect(that: Set[A]) = synchronized {
@@ -81,4 +93,12 @@ trait SynchronizedSet[A] extends scala.collection.mutable.Set[A] {
override def toString() = synchronized {
super.toString();
}
+
+ override def <<(cmd: Message[A]): Unit = synchronized {
+ super.<<(cmd);
+ }
+
+ override def clone(): Set[A] = synchronized {
+ super.clone();
+ }
}