summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/ListMap.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2009-09-15 16:14:29 +0000
committermichelou <michelou@epfl.ch>2009-09-15 16:14:29 +0000
commit4ccb0bf2b78919934cf67b901096331de638ee09 (patch)
tree407c54292d0bacd5f6ccc32e9a74b692d981b9e8 /src/library/scala/collection/immutable/ListMap.scala
parent2788c1ad5b82929a1103a070f5c0bcce83a931e8 (diff)
downloadscala-4ccb0bf2b78919934cf67b901096331de638ee09.tar.gz
scala-4ccb0bf2b78919934cf67b901096331de638ee09.tar.bz2
scala-4ccb0bf2b78919934cf67b901096331de638ee09.zip
fixed headers/comments/svn props, made some pro...
fixed headers/comments/svn props, made some progress with serializable classes
Diffstat (limited to 'src/library/scala/collection/immutable/ListMap.scala')
-rw-r--r--src/library/scala/collection/immutable/ListMap.scala11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/library/scala/collection/immutable/ListMap.scala b/src/library/scala/collection/immutable/ListMap.scala
index 40ecc67381..c991318872 100644
--- a/src/library/scala/collection/immutable/ListMap.scala
+++ b/src/library/scala/collection/immutable/ListMap.scala
@@ -9,14 +9,15 @@
// $Id$
-
package scala.collection.immutable
import scala.collection.generic._
-/** The canonical factory of <a href="ListMap.html">ListMap</a>'s */
+/** The canonical factory of <a href="ListMap.html">ListMap</a>'s.
+ */
object ListMap extends ImmutableMapFactory[ListMap] {
- implicit def builderFactory[A, B]: BuilderFactory[(A, B), ListMap[A, B], Coll] = new MapBuilderFactory[A, B]
+ implicit def builderFactory[A, B]: BuilderFactory[(A, B), ListMap[A, B], Coll] =
+ new MapBuilderFactory[A, B]
def empty[A, B]: ListMap[A, B] = new ListMap
}
@@ -29,7 +30,7 @@ object ListMap extends ImmutableMapFactory[ListMap] {
* @author Martin Oderskty
* @version 2.0, 01/01/2007
*/
-@serializable
+@serializable @SerialVersionUID(301002838095710379L)
class ListMap[A, +B] extends Map[A, B] with ImmutableMapTemplate[A, B, ListMap[A, B]] {
override def empty = ListMap.empty
@@ -99,7 +100,7 @@ class ListMap[A, +B] extends Map[A, B] with ImmutableMapTemplate[A, B, ListMap[A
protected def value: B = throw new NoSuchElementException("empty map")
protected def next: ListMap[A, B] = throw new NoSuchElementException("empty map")
- @serializable
+ @serializable @SerialVersionUID(-6453056603889598734L)
protected class Node[B1 >: B](override protected val key: A,
override protected val value: B1) extends ListMap[A, B1] {
/** Returns the number of mappings in this map.