summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-12-03 12:22:10 +0000
committerburaq <buraq@epfl.ch>2003-12-03 12:22:10 +0000
commitf4eb9e9cf9657671f0d21ec2c72a07edb86651b5 (patch)
treef3db18b91f8ffc5079deeca0bc6ba023183e68b5
parente6769e5ed9ee272d3ca96c0579e7ef54890ba00b (diff)
downloadscala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.tar.gz
scala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.tar.bz2
scala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.zip
toString convenience
-rw-r--r--sources/scala/xml/Utility.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scala/xml/Utility.scala b/sources/scala/xml/Utility.scala
index 66e0811d46..7a76f819fe 100644
--- a/sources/scala/xml/Utility.scala
+++ b/sources/scala/xml/Utility.scala
@@ -64,4 +64,9 @@ object Utility {
label.hashCode() + attribHashCode + children.hashCode()
}
+ /** returns a hashcode for the given constituents of a node */
+ def hashCode( label:String, attribs:scala.collection.mutable.HashMap[String,String], children:Seq[Node] ) = {
+ label.hashCode() + attribs.toList.hashCode() + children.hashCode()
+ }
+
}