Append given object to this buffer, returns reference on this
NodeBuffer for convenience.
Append given object to this buffer, returns reference on this
NodeBuffer for convenience. Some rules apply:
- If argument o is null, it is ignored.
- If it is an Iterator or Iterable, its elements will be added.
- If o is a node, it is added as it is.
- If it is anything else, it gets wrapped in an scala.xml.Atom.
converts to an xml node and adds to this node buffer
this nodebuffer
(Changed in version 2.8.0) ++ creates a new buffer. Use ++= to add an element from this buffer and return that buffer itself.
(Changed in version 2.8.0) - creates a new buffer. Use -= to remove an element from this buffer and return that buffer itself.
(Changed in version 2.8.0) - creates a new buffer. Use -= to remove an element from this buffer and return that buffer itself.
(Changed in version 2.8.0) -- creates a new buffer. Use --= to remove an element from this buffer and return that buffer itself.
(Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.
(Since version 2.11.0) Scripting is deprecated.
(Since version 2.11.0) The returned sequence changes as this buffer is mutated. For an immutable copy, use, e.g., toList.
This class acts as a Buffer for nodes. If it is used as a sequence of nodes
Seq[Node], it must be ensured that no updates occur after that point, becausescala.xml.Nodeis assumed to be immutable.Despite this being a sequence, don't use it as key in a hashtable. Calling the hashcode function will result in a runtime error.
1.0