diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-01-05 10:17:08 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-01-05 10:17:08 +0000 |
commit | d4b2af5aaf3905b37b9957210b1ad07431f5918d (patch) | |
tree | 733cd4b1dd102039b0670f93f4f522cb21a16fec /src | |
parent | 29da7050a8c603778dd7ec9f0b2c617812e00400 (diff) | |
download | scala-d4b2af5aaf3905b37b9957210b1ad07431f5918d.tar.gz scala-d4b2af5aaf3905b37b9957210b1ad07431f5918d.tar.bz2 scala-d4b2af5aaf3905b37b9957210b1ad07431f5918d.zip |
Fixed serialization throughout RedBlack hierarchy
Diffstat (limited to 'src')
-rwxr-xr-x | src/library/scala/collection/immutable/RedBlack.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/collection/immutable/RedBlack.scala b/src/library/scala/collection/immutable/RedBlack.scala index c95b16dc67..dd3c7ebc94 100755 --- a/src/library/scala/collection/immutable/RedBlack.scala +++ b/src/library/scala/collection/immutable/RedBlack.scala @@ -1,5 +1,6 @@ package scala.collection.immutable +[serializable] abstract class RedBlack[A] { def isSmaller(x: A, y: A): boolean @@ -11,6 +12,7 @@ abstract class RedBlack[A] { private def mkTree[B](isBlack: boolean, k: A, v: B, l: Tree[B], r: Tree[B]) = if (isBlack) BlackTree(k, v, l, r) else RedTree(k, v, l, r) + [serializable] abstract class Tree[+B] { def isEmpty: boolean def isBlack: boolean @@ -22,6 +24,7 @@ abstract class RedBlack[A] { def del(k: A): Tree[B] def smallest: NonEmpty[B] } + [serializable] abstract class NonEmpty[+B] extends Tree[B] { def isEmpty = false def key: A |