scala.xml

NodeBuffer

class NodeBuffer extends ArrayBuffer[Node]

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, because scala.xml.Node is 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.

Inherits

  1. ArrayBuffer
  2. ResizableArray
  3. IndexedSeq
  4. IndexedSeq
  5. Builder
  6. IndexedSeqLike
  7. IndexedSeqLike
  8. Buffer
  9. BufferLike
  10. Cloneable
  11. Subtractable
  12. Addable
  13. Scriptable
  14. Shrinkable
  15. Growable
  16. Seq
  17. Seq
  18. SeqLike
  19. PartialFunction
  20. Function1
  21. Iterable
  22. Iterable
  23. IterableLike
  24. Equals
  25. Traversable
  26. Mutable
  27. Traversable
  28. GenericTraversableTemplate
  29. TraversableLike
  30. HasNewBuilder
  31. AnyRef
  32. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def &+(o: Any): NodeBuffer

    Append given object to this buffer, returns reference on this NodeBuffer for convenience

  2. def +(elem1: Node, elem2: Node, elems: Node*): ArrayBuffer[Node]

    Adds two or more elements to this collection and returns the collection itself

  3. def +(elem: Node): ArrayBuffer[Node]

    Adds a single element to this collection and returns the collection itself

  4. def ++(iter: Iterator[Node]): ArrayBuffer[Node]

    Adds a number of elements provided by an iterator and returns the collection itself

  5. def ++(iter: Traversable[Node]): ArrayBuffer[Node]

    Adds a number of elements provided by a traversable object and returns either the collection itself

  6. def ++(that: Iterator[Node]): Traversable[Node]

    [use case] Concatenates this buffer with the elements of an iterator

  7. def ++[B >: Node, That](that: Iterator[B])(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Concatenates this buffer with the elements of an iterator

  8. def ++(that: Traversable[Node]): Traversable[Node]

    [use case] Concatenates this buffer with the elements of a traversable collection

  9. def ++[B >: Node, That](that: Traversable[B])(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Concatenates this buffer with the elements of a traversable collection

  10. def ++=(iter: Traversable[Node]): ArrayBuffer[Node]

    Appends a number of elements provided by an iterable object via its iterator method

  11. def ++=(src: Array[Node], start: Int, len: Int): Unit

    Adds a number of elements in an array

  12. def ++=(iter: Iterator[Node]): Growable[Node]

    Appends all elements produced by an iterator to this buffer

  13. def ++=:(iter: Traversable[Node]): ArrayBuffer[Node]

    Prepends a number of elements provided by an iterable object via its iterator method

  14. def ++=:(iter: Iterator[Node]): ArrayBuffer[Node]

    Prepends the elements produced by an iterator to this buffer

  15. def +:(elem: Node): Seq[Node]

    [use case] Prepends an element to this buffer

  16. def +:[B >: Node, That](elem: B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Prepends an element to this buffer

  17. def +=(elem: Node): ArrayBuffer[Node]

    Appends a single element to this buffer and returns the identity of the buffer

  18. def +=(elem1: Node, elem2: Node, elems: Node*): Growable[Node]

    Appends two or more elements to this buffer

  19. def +=:(elem: Node): ArrayBuffer[Node]

    Prepends a single element to this buffer and return the identity of the buffer

  20. def -(elem1: Node, elem2: Node, elems: Node*): ArrayBuffer[Node]

    Removes two or more elements from this collection and returns the collection itself

  21. def -(elem: Node): ArrayBuffer[Node]

    Removes a single element from this collection and returns the collection itself

  22. def --(iter: Iterator[Node]): ArrayBuffer[Node]

    Removes a number of elements provided by an iterator and returns the collection itself

  23. def --(iter: Traversable[Node]): ArrayBuffer[Node]

    Removes a number of elements provided by a Traversable object and returns the collection itself

  24. def --=(iter: Traversable[Node]): Shrinkable[Node]

    Removes all elements contained in a traversable collection from this buffer

  25. def --=(iter: Iterator[Node]): Shrinkable[Node]

    Removes all elements produced by an iterator from this buffer

  26. def -=(x: Node): ArrayBuffer[Node]

    Removes a single element from this buffer, at its first occurrence

  27. def -=(elem1: Node, elem2: Node, elems: Node*): Shrinkable[Node]

    Removes two or more elements from this buffer

  28. def /:[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this buffer, going left to right

  29. def :+(elem: Node): Seq[Node]

    [use case] Appends an element to this buffer

  30. def :+[B >: Node, That](elem: B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Appends an element to this buffer

  31. def :\[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this buffer and a start value, going right to left

  32. def <<(cmd: Message[Node]): Unit

    Send a message to this scriptable object

  33. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this buffer to a string builder

  34. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this buffer to a string builder using a separator string

  35. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this buffer to a string builder using start, end, and separator strings

  36. def andThen[C](k: (Node) ⇒ C): PartialFunction[Int, C]

    Composes this partial function with a transformation function that gets applied to results of this partial function

  37. def append(elems: Node*): Unit

    Appends the given elements to this buffer

  38. def appendAll(iter: Iterator[Node]): Unit

    Appends the elements produced by an iterator to this buffer

  39. def appendAll(elems: Traversable[Node]): Unit

    Appends the elements contained in a traversable collection to this buffer

  40. def apply(idx: Int): Node

    Selects an element by its index in the buffer

  41. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  42. def clear(): Unit

    Clears the contents of this builder

  43. def clone(): ArrayBuffer[Node]

    Return a clone of this buffer

  44. def companion: GenericCompanion[ArrayBuffer[A][A]]

    The factory companion object that builds instances of class Buffer

  45. def compose[A](g: (A) ⇒ Int): (A) ⇒ Node

    (f compose g)(x) == f(g(x))

  46. def contains(elem: Any): Boolean

    Tests whether this buffer contains a given value as an element

  47. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this buffer contains a given sequence as a slice

  48. def copyToArray[B >: Node](xs: Array[B], start: Int, len: Int): Unit

    Fills the given array xs with at most len elements of this traversable starting at position start

  49. def copyToArray(xs: Array[Node], start: Int): Unit

    [use case] Copies elements of this buffer to an array

  50. def copyToArray[B >: Node](xs: Array[B]): Unit

    Copies elements of this buffer to an array

  51. def copyToArray(xs: Array[Node], start: Int): Unit

    [use case] Copies elements of this buffer to an array

  52. def copyToArray[B >: Node](xs: Array[B], start: Int): Unit

    Copies elements of this buffer to an array

  53. def copyToBuffer[B >: Node](dest: Buffer[B]): Unit

    Copies all elements of this buffer to a buffer

  54. def corresponds[B](that: Seq[B])(p: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this buffer relates to the corresponding element of another sequence by satisfying a test predicate

  55. def count(p: (Node) ⇒ Boolean): Int

    Counts the number of elements in the buffer which satisfy a predicate

  56. def diff[B >: Node, That](that: Seq[B]): ArrayBuffer[Node]

    Computes the multiset difference between this buffer and another sequence

  57. def drop(n: Int): ArrayBuffer[Node]

    Selects all elements except first n ones

  58. def dropRight(n: Int): ArrayBuffer[Node]

    Selects all elements except first n ones

  59. def dropWhile(p: (Node) ⇒ Boolean): ArrayBuffer[Node]

    Drops longest prefix of elements that satisfy a predicate

  60. def elements: Iterator[Node]

  61. def endsWith[B](that: Seq[B]): Boolean

    Tests whether this buffer ends with the given sequence

  62. def equals(that: Any): Boolean

    The equality method defined in AnyRef

  63. def equalsWith[B](that: Seq[B])(f: (Node, B) ⇒ Boolean): Boolean

    Tests whether every element of this buffer relates to the corresponding element of another sequence by satisfying a test predicate

  64. def exists(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this buffer

  65. def filter(p: (Node) ⇒ Boolean): ArrayBuffer[Node]

    Selects all elements of this buffer which satisfy a predicate

  66. def filterNot(p: (Node) ⇒ Boolean): ArrayBuffer[Node]

    Selects all elements of this buffer which do not satisfy a predicate

  67. def find(p: (Node) ⇒ Boolean): Option[Node]

    Finds the first element of the buffer satisfying a predicate, if any

  68. def findIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the first element satisying a predicate, or -1

  69. def findLastIndexOf(p: (Node) ⇒ Boolean): Int

    Returns index of the last element satisying a predicate, or -1

  70. def first: Node

  71. def firstOption: Option[Node]

    None if iterable is empty

  72. def flatMap[B](f: (Node) ⇒ Traversable[B]): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this buffer and concatenating the results

  73. def flatMap[B, That](f: (Node) ⇒ Traversable[B])(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Builds a new collection by applying a function to all elements of this buffer and concatenating the results

  74. def flatten[B]: CC[B]

    [use case] Converts this buffer of traversable collections into a buffer in which all element collections are concatenated

  75. def flatten[B](asTraversable: (Node) ⇒ Traversable[B]): ArrayBuffer[B]

    Converts this buffer of traversable collections into a buffer in which all element collections are concatenated

  76. def foldLeft[B](z: B)(op: (B, Node) ⇒ B): B

    Applies a binary operator to a start value and all elements of this buffer, going left to right

  77. def foldRight[B](z: B)(op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this buffer and a start value, going right to left

  78. def forall(p: (Node) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this buffer

  79. def foreach(f: (Node) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this buffer

  80. def foreach[U](f: (Node) ⇒ U): Unit

    Applies a function f to all elements of this buffer

  81. def genericBuilder[B]: Builder[B, ArrayBuffer[B]]

    The generic builder that builds instances of Buffer at arbitrary element types

  82. def groupBy[K](f: (Node) ⇒ K): Map[K, ArrayBuffer[Node]]

    Partitions this buffer into a map of buffers according to some discriminator function

  83. def grouped(size: Int): Iterator[ArrayBuffer[Node]]

    Partitions elements in fixed size buffers

  84. def hasDefiniteSize: Boolean

    Tests whether this buffer is known to have a finite size

  85. def hashCode(): Int

    Hashcodes for Buffer produce a value from the hashcodes of all the elements of the buffer

  86. def head: Node

    Selects the first element of this buffer

  87. def headOption: Option[Node]

    Optionally selects the first element

  88. def indexOf(elem: Node): Int

    [use case] Finds index of first occurrence of some value in this buffer after or at some start index

  89. def indexOf[B >: Node](elem: B, from: Int): Int

    Finds index of first occurrence of some value in this buffer after or at some start index

  90. def indexOf(elem: Node): Int

    [use case] Finds index of first occurrence of some value in this buffer

  91. def indexOf[B >: Node](elem: B): Int

    Finds index of first occurrence of some value in this buffer

  92. def indexOfSlice[B >: Node](that: Seq[B], from: Int): Int

    Finds first index after or at a start index where this buffer contains a given sequence as a slice

  93. def indexOfSlice[B >: Node](that: Seq[B]): Int

    Finds first index where this buffer contains a given sequence as a slice

  94. def indexWhere(p: (Node) ⇒ Boolean, from: Int): Int

    Finds index of the first element satisfying some predicate after or at some start index

  95. def indexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of first element satisfying some predicate

  96. def indices: Range

    Produces the range of all indices of this sequence

  97. def init: ArrayBuffer[Node]

    Selects all elements except the last

  98. def insert(n: Int, elems: Node*): Unit

    Inserts new elements at a given index into this buffer

  99. def insertAll(n: Int, seq: Traversable[Node]): Unit

    Inserts new elements at the index n

  100. def intersect[B >: Node, That](that: Seq[B]): ArrayBuffer[Node]

    Computes the multiset intersection between this buffer and another sequence

  101. def isDefinedAt(idx: Int): Boolean

    Tests whether this buffer contains given index

  102. def isEmpty: Boolean

    Tests whether this buffer is empty

  103. def iterator: Iterator[Node]

    Creates a new iterator over all elements contained in this iterable object

  104. def last: Node

    Selects the last element

  105. def lastIndexOf(elem: Node): Int

    [use case] Finds index of last occurrence of some value in this buffer before or at a given end index

  106. def lastIndexOf[B >: Node](elem: B, end: Int): Int

    Finds index of last occurrence of some value in this buffer before or at a given end index

  107. def lastIndexOf(elem: Node): Int

    [use case] Finds index of last occurrence of some value in this buffer

  108. def lastIndexOf[B >: Node](elem: B): Int

    Finds index of last occurrence of some value in this buffer

  109. def lastIndexOfSlice[B >: Node](that: Seq[B], end: Int): Int

    Finds last index before or at a given end index where this buffer contains a given sequence as a slice

  110. def lastIndexOfSlice[B >: Node](that: Seq[B]): Int

    Finds last index where this buffer contains a given sequence as a slice

  111. def lastIndexWhere(p: (Node) ⇒ Boolean, end: Int): Int

    Finds index of last element satisfying some predicate before or at given end index

  112. def lastIndexWhere(p: (Node) ⇒ Boolean): Int

    Finds index of last element satisfying some predicate

  113. def lastOption: Option[Node]

    Optionally selects the last element

  114. def length: Int

    Returns the length of this resizable array

  115. def lengthCompare(len: Int): Int

    Compares the length of this buffer to a test value

  116. def lift: (Int) ⇒ Option[Node]

    Turns this partial function into an plain function returning an Option result

  117. def map[B](f: (Node) ⇒ B): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this buffer

  118. def map[B, That](f: (Node) ⇒ B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Builds a new collection by applying a function to all elements of this buffer

  119. def mapResult[NewTo](f: (ArrayBuffer[Node]) ⇒ NewTo): Builder[Node, NewTo]

    Creates a new builder by applying a transformation function to the results of this builder

  120. def max[B >: Node](cmp: Ordering[B]): Node

    Finds the largest element

  121. def min: Node

    [use case] Finds the largest element

  122. def min: Node

    [use case] Finds the smallest element

  123. def min[B >: Node](cmp: Ordering[B]): Node

    Finds the smallest element

  124. def mkString: String

    Displays all elements of this buffer in a string

  125. def mkString(sep: String): String

    Displays all elements of this buffer in a string using a separator string

  126. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this buffer in a string using start, end, and separator strings

  127. def nonEmpty: Boolean

    Tests whether the buffer is not empty

  128. def orElse[A1 <: Int, B1 >: Node](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Composes this partial function with a fallback partial function which gets applied where this partial function is not defined

  129. def padTo(len: Int, elem: Node): Seq[Node]

    [use case] Appends an element value to this buffer until a given target length is reached

  130. def padTo[B >: Node, That](len: Int, elem: B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Appends an element value to this buffer until a given target length is reached

  131. def partialMap[B](pf: PartialFunction[Node, B]): Traversable[B]

    [use case] Builds a new collection by applying a partial function to all elements of this buffer on which the function is defined

  132. def partialMap[B, That](pf: PartialFunction[Node, B])(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Builds a new collection by applying a partial function to all elements of this buffer on which the function is defined

  133. def partition(p: (Node) ⇒ Boolean): (ArrayBuffer[Node], ArrayBuffer[Node])

    Partitions this buffer in two buffers according to a predicate

  134. def patch(from: Int, that: Seq[Node], replaced: Int): Seq[Node]

    [use case] Produces a new buffer where a slice of elements in this buffer is replaced by another sequence

  135. def patch[B >: Node, That](from: Int, patch: Seq[B], replaced: Int)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Produces a new buffer where a slice of elements in this buffer is replaced by another sequence

  136. def prefixLength(p: (Node) ⇒ Boolean): Int

    Returns the length of the longest prefix whose elements all satisfy some preficate

  137. def prepend(elems: Node*): Unit

    Prepends given elements to this buffer

  138. def prependAll(iter: Iterator[Node]): Unit

    Prepends a number of elements produced by an iterator to this buffer

  139. def prependAll(iter: Traversable[Node]): Unit

    Prepends the elements contained in a traversable collection to this buffer

  140. def product: Int

    [use case] Multiplies up the elements of this collection

  141. def product[B >: Node](num: Numeric[B]): B

    Multiplies up the elements of this collection

  142. def projection: SeqView[Node, ArrayBuffer[Node]]

    returns a projection that can be used to call non-strict filter, map, and flatMap methods that build projections of the collection

  143. def readOnly: Seq[Node]

    Provide a read-only view of this byffer as a sequence

  144. def reduceLeft[B >: Node](op: (B, Node) ⇒ B): B

    Applies a binary operator to all elements of this buffer, going left to right

  145. def reduceLeftOption[B >: Node](op: (B, Node) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this buffer, going left to right

  146. def reduceRight[B >: Node](op: (Node, B) ⇒ B): B

    Applies a binary operator to all elements of this buffer, going right to left

  147. def reduceRightOption[B >: Node](op: (Node, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this buffer, going right to left

  148. def reduceToSize(sz: Int): Unit

    remove elements of this array at indices after sz

  149. def remove(n: Int): Node

    Removes the element on a given index position

  150. def remove(n: Int, count: Int): Unit

    Removes the element on a given index position

  151. def removeDuplicates: ArrayBuffer[Node]

    Builds a new buffer from this buffer without any duplicate elements

  152. def repr: ArrayBuffer[Node]

    The collection of type buffer underlying this TraversableLike object

  153. def result(): ArrayBuffer[Node]

    Produces a collection from the added elements

  154. def reverse: ArrayBuffer[Node]

    Returns new buffer wih elements in reversed order

  155. def reverseIterator: Iterator[Node]

    An iterator yielding elements in reversed order

  156. def reverseMap[B](f: (Node) ⇒ B): Seq[B]

    [use case] Builds a new collection by applying a function to all elements of this buffer and collecting the results in reversed order

  157. def reverseMap[B, That](f: (Node) ⇒ B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Builds a new collection by applying a function to all elements of this buffer and collecting the results in reversed order

  158. def reversedElements: Iterator[Node]

  159. def sameElements(that: Iterable[Node]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this buffer

  160. def sameElements[B >: Node](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this buffer

  161. def segmentLength(p: (Node) ⇒ Boolean, from: Int): Int

    Computes length of longest segment whose elements all satisfy some preficate

  162. def size: Int

    The size of this buffer, equivalent to length

  163. def sizeHint(len: Int): Unit

    Gives a hint how many elements are expected to be added when the next result is called

  164. def slice(from: Int, until: Int): ArrayBuffer[Node]

    Selects an interval of elements

  165. def sliding[B >: Node](size: Int, step: Int): Iterator[ArrayBuffer[Node]]

  166. def sliding[B >: Node](size: Int): Iterator[ArrayBuffer[Node]]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped

  167. def sortBy[B](f: (Node) ⇒ B)(ord: Ordering[B]): ArrayBuffer[Node]

    Sorts this Buffer according to the Ordering which results from transforming an implicitly given Ordering with a transformation function

  168. def sortWith[B >: Node](ord: Ordering[B]): ArrayBuffer[Node]

    Sorts this buffer according to an Ordering

  169. def sortWith(lt: (Node, Node) ⇒ Boolean): ArrayBuffer[Node]

    Sorts this buffer according to a comparison function

  170. def span(p: (Node) ⇒ Boolean): (ArrayBuffer[Node], ArrayBuffer[Node])

    Spits this buffer into a prefix/suffix pair according to a predicate

  171. def splitAt(n: Int): (ArrayBuffer[Node], ArrayBuffer[Node])

    Splits this buffer into two at a given position

  172. def startsWith[B](that: Seq[B], offset: Int): Boolean

    Tests whether this buffer contains the given sequence at a given index

  173. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this buffer starts with the given sequence

  174. def stringPrefix: String

    Defines the prefix of the string representation

  175. def sum: Int

    [use case] Sums up the elements of this collection

  176. def sum[B >: Node](num: Numeric[B]): B

    Sums up the elements of this collection

  177. def tail: ArrayBuffer[Node]

    Selects all elements except the first

  178. def take(n: Int): ArrayBuffer[Node]

    Selects first n elements

  179. def takeRight(n: Int): ArrayBuffer[Node]

    Selects last n elements

  180. def takeWhile(p: (Node) ⇒ Boolean): ArrayBuffer[Node]

    Takes longest prefix of elements that satisfy a predicate

  181. def toArray: Array[Node]

    [use case] Converts this buffer to an array

  182. def toArray[B >: Node](arg0: ClassManifest[B]): Array[B]

    Converts this buffer to an array

  183. def toIndexedSeq[B >: Node]: IndexedSeq[B]

    Converts this buffer to an indexed sequence

  184. def toIterable: Iterable[Node]

    Converts this buffer to an iterable collection

  185. def toList: List[Node]

    Converts this buffer to a list

  186. def toMap[T, U](ev: <:<[Node, (T, U)]): Map[T, U]

    Converts this buffer to a map

  187. def toSeq: Seq[Node]

    Converts this buffer to a sequence

  188. def toSet[B >: Node]: Set[B]

    Converts this buffer to a set

  189. def toStream: Stream[Node]

    Converts this buffer to a stream

  190. def toString(): String

    Converts this buffer to a string

  191. def transpose[B](asTraversable: (Node) ⇒ Traversable[B]): ArrayBuffer[ArrayBuffer[B]]

    Transposes this buffer of traversable collections into

  192. def trimEnd(n: Int): Unit

    Removes the last n elements of this buffer

  193. def trimStart(n: Int): Unit

    Removes the first n elements of this buffer

  194. def union(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset intersection between this buffer and another sequence

  195. def union(that: Seq[Node]): Seq[Node]

    [use case] Computes the multiset difference between this buffer and another sequence

  196. def union(that: Seq[Node]): Seq[Node]

    [use case] Produces a new sequence which contains all elements of this buffer and also all elements of a given sequence

  197. def union[B >: Node, That](that: Seq[B])(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Produces a new sequence which contains all elements of this buffer and also all elements of a given sequence

  198. def unzip[A1, A2](asPair: (Node) ⇒ (A1, A2)): (ArrayBuffer[A1], ArrayBuffer[A2])

    Converts this buffer of pairs into two collections of the first and second halfs of each pair

  199. def update(idx: Int, elem: Node): Unit

    Replaces element at given index with a new value

  200. def updated(index: Int, elem: Node): Seq[Node]

    [use case] A copy of this buffer with one single replaced element

  201. def updated[B >: Node, That](index: Int, elem: B)(bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    A copy of this buffer with one single replaced element

  202. def view(from: Int, until: Int): IndexedSeqView[Node, ArrayBuffer[Node]]

    A sub-sequence view starting at index from and extending up to (but not including) index until

  203. def view: IndexedSeqView[Node, ArrayBuffer[Node]]

    Creates a view of this iterable @see Iterable

  204. def withFilter(p: (Node) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this buffer

  205. def zip[B](that: Iterable[B]): Iterable[(Node, B)]

    [use case] Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs

  206. def zip[A1 >: Node, B, That](that: Iterable[B])(bf: CanBuildFrom[ArrayBuffer[Node], (A1, B), That]): That

    Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs

  207. def zipAll[B](that: Iterable[B], thisElem: Node, thatElem: B): Iterable[(Node, B)]

    [use case] Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs

  208. def zipAll[B, A1 >: Node, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[ArrayBuffer[Node], (A1, B), That]): That

    Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs

  209. def zipWithIndex: Iterable[(Node, Int)]

    [use case] Zips this buffer with its indices

  210. def zipWithIndex[A1 >: Node, That](bf: CanBuildFrom[ArrayBuffer[Node], (A1, Int), That]): That

    Zips this buffer with its indices

Instance constructors

  1. new NodeBuffer()

  2. new NodeBuffer(initialSize: Int)