diff options
author | buraq <buraq@epfl.ch> | 2003-12-03 12:22:10 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2003-12-03 12:22:10 +0000 |
commit | f4eb9e9cf9657671f0d21ec2c72a07edb86651b5 (patch) | |
tree | f3db18b91f8ffc5079deeca0bc6ba023183e68b5 /sources | |
parent | e6769e5ed9ee272d3ca96c0579e7ef54890ba00b (diff) | |
download | scala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.tar.gz scala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.tar.bz2 scala-f4eb9e9cf9657671f0d21ec2c72a07edb86651b5.zip |
toString convenience
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/xml/Utility.scala | 5 |
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() + } + } |