diff options
author | Martin Odersky <odersky@gmail.com> | 2009-09-25 16:20:13 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-09-25 16:20:13 +0000 |
commit | 4a727f3b01d0fa27ef51f7dba472116e021e3445 (patch) | |
tree | c9ab55ea7fe6051455271b23e9fbfc2f313015c0 /src/library/scala/collection/immutable/SortedMap.scala | |
parent | e31f18094dfba97c80871869a037172ff2c9c1c2 (diff) | |
download | scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.tar.gz scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.tar.bz2 scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.zip |
Collections refactoring.
Diffstat (limited to 'src/library/scala/collection/immutable/SortedMap.scala')
-rw-r--r-- | src/library/scala/collection/immutable/SortedMap.scala | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/library/scala/collection/immutable/SortedMap.scala b/src/library/scala/collection/immutable/SortedMap.scala index 4f3bbf6c0d..29b5e218de 100644 --- a/src/library/scala/collection/immutable/SortedMap.scala +++ b/src/library/scala/collection/immutable/SortedMap.scala @@ -9,9 +9,11 @@ // $Id$ -package scala.collection.immutable +package scala.collection +package immutable -import scala.collection.generic._ +import generic._ +import mutable.Builder import annotation.unchecked.uncheckedVariance /** A map whose keys are sorted. @@ -21,9 +23,9 @@ import annotation.unchecked.uncheckedVariance * @version 2.8 */ trait SortedMap[A, +B] extends Map[A, B] - with collection.SortedMap[A, B] - with ImmutableMapTemplate[A, B, SortedMap[A, B]] - with SortedMapTemplate[A, B, SortedMap[A, B]] { + with scala.collection.SortedMap[A, B] + with MapLike[A, B, SortedMap[A, B]] + with SortedMapLike[A, B, SortedMap[A, B]] { override protected[this] def newBuilder : Builder[(A, B), SortedMap[A, B]] = SortedMap.newBuilder[A, B] @@ -53,7 +55,7 @@ trait SortedMap[A, +B] extends Map[A, B] * * @param elems the traversable object. */ - override def ++[B1 >: B](elems: collection.Traversable[(A, B1)]): SortedMap[A, B1] = + override def ++[B1 >: B](elems: scala.collection.Traversable[(A, B1)]): SortedMap[A, B1] = ((repr: SortedMap[A, B1]) /: elems) (_ + _) /** Adds a number of elements provided by an iterator |