diff options
author | buraq <buraq@epfl.ch> | 2003-12-19 12:07:27 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2003-12-19 12:07:27 +0000 |
commit | 183040ae171a90863b4f5a660e952faafe644eac (patch) | |
tree | 9c4734b99d8e48a99d76150b32d1f219971b8657 | |
parent | d6cb921038f56fd3aa0f74700935f1972a9ec4b7 (diff) | |
download | scala-183040ae171a90863b4f5a660e952faafe644eac.tar.gz scala-183040ae171a90863b4f5a660e952faafe644eac.tar.bz2 scala-183040ae171a90863b4f5a660e952faafe644eac.zip |
*** empty log message ***
-rw-r--r-- | sources/scala/xml/AttributedNode.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/scala/xml/AttributedNode.scala b/sources/scala/xml/AttributedNode.scala index 600c4b532d..3ff0d8f284 100644 --- a/sources/scala/xml/AttributedNode.scala +++ b/sources/scala/xml/AttributedNode.scala @@ -16,10 +16,14 @@ trait AttributedNode extends Node { */ def attributes: Map[String, String]; - /** Destructively updated attributes. + /** Returns a new AttributedNode with updated attributes. */ def %(attrs: List[Pair[String, String]]): AttributedNode; + /** Returns a new AttributedNode with updated attribute. + */ + def %(attr: Pair[String, String]): AttributedNode; + /** Returns the hashcode for this node. */ override def hashCode() = Utility.hashCode(label, attributes.toList.hashCode(), children); |