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.

source: NodeBuffer.scala
    version
  1. 1.0

    authors:
  1. Burak Emir

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

Instance constructors

  1. new NodeBuffer()

Type Members

  1. class Elements extends BufferedIterator[A]

    The class of the iterator returned by the iterator method.

  2. type Self = ArrayBuffer[Node]

    The type implementing this traversable

  3. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

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

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

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

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

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

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

  9. def ++(xs: TraversableOnce[Node]): ArrayBuffer[Node]

    Creates a new collection containing both the elements of this collection and the provided traversable object.

  10. def ++(that: TraversableOnce[Node]): Traversable[Node]

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

  11. def ++[B >: Node, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Concatenates this arraybuffer with the elements of a traversable collection.

  12. def ++:(xs: Traversable[Node]): ArrayBuffer[Node]

    This method prepends elements to the buffer and returns the same buffer.

  13. def ++=(xs: TraversableOnce[Node]): ArrayBuffer[Node]

    Appends a number of elements provided by a traversable object.

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

    Adds a number of elements in an array

  15. def ++=:(xs: TraversableOnce[Node]): ArrayBuffer[Node]

    Prepends a number of elements provided by a traversable object.

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

    This method prepends elements to the buffer and returns the same buffer.

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

    [use case] Prepends an element to this arraybuffer

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

    Prepends an element to this arraybuffer

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

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

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

    Appends two or more elements to this arraybuffer.

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

    Prepends a single element to this buffer and returns the identity of the buffer.

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

    Creates a new collection with all the elements of this collection except the two or more specified elements.

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

    Creates a new collection with all the elements of this collection except elem.

  24. def --(xs: TraversableOnce[Node]): ArrayBuffer[Node]

    Creates a new collection with all the elements of this collection except those provided by the specified traversable object.

  25. def --=(xs: TraversableOnce[Node]): Shrinkable[Node]

    Removes all elements produced by an iterator from this arraybuffer.

  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 arraybuffer.

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

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

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

    [use case] Appends an element to this arraybuffer

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

    Appends an element to this arraybuffer

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

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

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

    Send a message to this scriptable object.

  33. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  34. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  35. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this arraybuffer to a string builder.

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

    Appends all elements of this arraybuffer to a string builder using a separator string.

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

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

  38. 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.

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

    Appends the given elements to this buffer.

  40. def appendAll(xs: TraversableOnce[Node]): Unit

    Appends the elements contained in a traversable object to this buffer.

  41. def apply(idx: Int): Node

    Selects an element by its index in the arraybuffer.

  42. var array: Array[AnyRef]

  43. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  44. 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.

  45. def clear(): Unit

    Clears the contents of this builder.

  46. def clone(): ArrayBuffer[Node]

    Return a clone of this buffer.

  47. def collect[B](pf: PartialFunction[Node, B]): Traversable[B]

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

  48. def collect[B, That](pf: PartialFunction[Node, B])(implicit bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

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

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

    The factory companion object that builds instances of class ArrayBuffer.

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

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

  51. def contains(elem: Any): Boolean

    Tests whether this arraybuffer contains a given value as an element.

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

    Tests whether this arraybuffer contains a given sequence as a slice.

  53. def copy(m: Int, n: Int, len: Int): Unit

    Move parts of the array.

  54. 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.

  55. def copyToArray(xs: Array[Node]): Unit

    [use case] Copies values of this arraybuffer to an array.

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

    Copies values of this arraybuffer to an array.

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

    [use case] Copies values of this arraybuffer to an array.

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

    Copies values of this arraybuffer to an array.

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

    Copies all elements of this arraybuffer to a buffer.

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

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

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

    Counts the number of elements in the arraybuffer which satisfy a predicate.

  62. def diff(that: Seq[Node]): Seq[Node]

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

  63. def diff[B >: Node](that: Seq[B]): ArrayBuffer[Node]

    Computes the multiset difference between this arraybuffer and another sequence.

  64. def distinct: ArrayBuffer[Node]

    Builds a new arraybuffer from this arraybuffer without any duplicate elements.

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

    Selects all elements except first n ones.

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

    Selects all elements except last n ones.

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

    Drops longest prefix of elements that satisfy a predicate.

  68. def elements: Iterator[Node]

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

    Tests whether this arraybuffer ends with the given sequence.

  70. def ensureSize(n: Int): Unit

    ensure that the internal array has at n cells

  71. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  72. def equals(that: Any): Boolean

    The equality method defined in AnyRef.

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

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

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

    Tests whether a predicate holds for some of the elements of this arraybuffer.

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

    Selects all elements of this arraybuffer which satisfy a predicate.

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

    Selects all elements of this arraybuffer which do not satisfy a predicate.

  77. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

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

    Finds the first element of the arraybuffer satisfying a predicate, if any.

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

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

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

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

  81. def first: Node

  82. def firstOption: Option[Node]

    None if iterable is empty.

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

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

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

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

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

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

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

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

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

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

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

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

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

    Tests whether a predicate holds for all elements of this arraybuffer.

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

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

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

    Applies a function f to all elements of this arraybuffer.

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

    The generic builder that builds instances of ArrayBuffer at arbitrary element types.

  93. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

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

    Partitions this arraybuffer into a map of arraybuffers according to some discriminator function.

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

    Partitions elements in fixed size arraybuffers.

  96. def hasDefiniteSize: Boolean

    Tests whether this arraybuffer is known to have a finite size.

  97. def hashCode(): Int

    Hashcodes for ArrayBuffer produce a value from the hashcodes of all the elements of the arraybuffer.

  98. def head: Node

    Selects the first element of this arraybuffer.

  99. def headOption: Option[Node]

    Optionally selects the first element.

  100. def indexOf(elem: Node, from: Int): Int

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

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

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

  102. def indexOf(elem: Node): Int

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

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

    Finds index of first occurrence of some value in this arraybuffer.

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

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

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

    Finds first index where this arraybuffer contains a given sequence as a slice.

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

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

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

    Finds index of first element satisfying some predicate.

  108. def indices: Range

    Produces the range of all indices of this sequence.

  109. def init: ArrayBuffer[Node]

    Selects all elements except the last.

  110. val initialSize: Int

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

    Inserts new elements at a given index into this buffer.

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

    Inserts new elements at the index n.

  113. def intersect(that: Seq[Node]): Seq[Node]

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

  114. def intersect[B >: Node](that: Seq[B]): ArrayBuffer[Node]

    Computes the multiset intersection between this arraybuffer and another sequence.

  115. def isDefinedAt(idx: Int): Boolean

    Tests whether this arraybuffer contains given index.

  116. def isEmpty: Boolean

    Tests whether this arraybuffer is empty.

  117. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  118. def isTraversableAgain: Boolean

    Tests whether this arraybuffer can be repeatedly traversed.

  119. def iterator: Iterator[Node]

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

  120. def last: Node

    Selects the last element.

  121. def lastIndexOf(elem: Node, end: Int): Int

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

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

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

  123. def lastIndexOf(elem: Node): Int

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

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

    Finds index of last occurrence of some value in this arraybuffer.

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

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

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

    Finds last index where this arraybuffer contains a given sequence as a slice.

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

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

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

    Finds index of last element satisfying some predicate.

  129. def lastOption: Option[Node]

    Optionally selects the last element.

  130. def length: Int

    Returns the length of this resizable array.

  131. def lengthCompare(len: Int): Int

    Compares the length of this arraybuffer to a test value.

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

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

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

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

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

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

  135. 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.

  136. def max: Node

    [use case] Finds the largest element.

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

    Finds the largest element.

  138. def min: Node

    [use case] Finds the smallest element.

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

    Finds the smallest element.

  140. def mkString: String

    Displays all elements of this arraybuffer in a string.

  141. def mkString(sep: String): String

    Displays all elements of this arraybuffer in a string using a separator string.

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

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

  143. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  144. def newBuilder: Builder[Node, ArrayBuffer[Node]]

    The builder that builds instances of type ArrayBuffer[A]

  145. def nonEmpty: Boolean

    Tests whether the arraybuffer is not empty.

  146. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  147. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  148. 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.

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

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

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

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

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

    Partitions this arraybuffer in two arraybuffers according to a predicate.

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

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

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

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

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

    Returns the length of the longest prefix whose elements all satisfy some predicate.

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

    Prepends given elements to this buffer.

  156. def prependAll(xs: TraversableOnce[Node]): Unit

    Prepends the elements contained in a traversable object to this buffer.

  157. def product: Int

    [use case] Multiplies up the elements of this collection.

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

    Multiplies up the elements of this collection.

  159. 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.

  160. def readOnly: Seq[Node]

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

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

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

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

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

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

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

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

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

  165. def reduceToSize(sz: Int): Unit

    remove elements of this array at indices after sz

  166. def remove(n: Int): Node

    Removes the element at a given index position.

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

    Removes the element on a given index position.

  168. def repr: ArrayBuffer[Node]

    The collection of type arraybuffer underlying this TraversableLike object.

  169. def result(): ArrayBuffer[Node]

    Produces a collection from the added elements.

  170. def reverse: ArrayBuffer[Node]

    Returns new arraybuffer wih elements in reversed order.

  171. def reverseIterator: Iterator[Node]

    An iterator yielding elements in reversed order.

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

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

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

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

  174. def reversed: List[Node]

  175. def reversedElements: Iterator[Node]

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

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

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

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

  178. def scanLeft[B, That](z: B)(op: (B, Node) ⇒ B)(implicit bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Produces a collection containing cummulative results of applying the operator going left to right.

  179. def scanRight[B, That](z: B)(op: (Node, B) ⇒ B)(implicit bf: CanBuildFrom[ArrayBuffer[Node], B, That]): That

    Produces a collection containing cummulative results of applying the operator going right to left.

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

    Computes length of longest segment whose elements all satisfy some predicate.

  181. def size: Int

    The size of this arraybuffer, equivalent to length.

  182. var size0: Int

  183. def sizeHint(len: Int): Unit

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

  184. def sizeHint(coll: scala.collection.TraversableLike[_, _], delta: Int = 0): Unit

    Gives a hint that one expects the result of this builder to have the same size as the given collection, plus some delta.

  185. def sizeHintBounded(size: Int, boundingColl: scala.collection.TraversableLike[_, _]): Unit

    Gives a hint how many elements are expected to be added when the next result is called, together with an upper bound given by the size of some other collection.

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

    Selects an interval of elements.

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

  188. 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.

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

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

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

    Sorts this arraybuffer according to a comparison function.

  191. def sorted[B >: Node](implicit ord: Ordering[B]): ArrayBuffer[Node]

    Sorts this arraybuffer according to an Ordering.

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

    Splits this arraybuffer into a prefix/suffix pair according to a predicate.

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

    Splits this arraybuffer into two at a given position.

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

    Tests whether this arraybuffer contains the given sequence at a given index.

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

    Tests whether this arraybuffer starts with the given sequence.

  196. def stringPrefix: String

    Defines the prefix of the string representation.

  197. def sum: Int

    [use case] Sums up the elements of this collection.

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

    Sums up the elements of this collection.

  199. def swap(a: Int, b: Int): Unit

    Swap two elements of this array.

  200. def synchronized[T0](arg0: T0): T0

  201. def tail: ArrayBuffer[Node]

    Selects all elements except the first.

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

    Selects first n elements.

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

    Selects last n elements.

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

    Takes longest prefix of elements that satisfy a predicate.

  205. def thisCollection: IndexedSeq[Node]

    The underlying collection seen as an instance of ArrayBuffer.

  206. def toArray: Array[Node]

    [use case] Converts this arraybuffer to an array.

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

    Converts this arraybuffer to an array.

  208. def toBuffer[B >: Node]: Buffer[B]

    Converts this arraybuffer to a mutable buffer.

  209. def toCollection(repr: ArrayBuffer[Node]): IndexedSeq[Node]

    A conversion from collections of type Repr to ArrayBuffer objects.

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

    Converts this arraybuffer to an indexed sequence.

  211. def toIterable: Iterable[Node]

    Converts this arraybuffer to an iterable collection.

  212. def toIterator: Iterator[Node]

    Returns an Iterator over the elements in this arraybuffer.

  213. def toList: List[Node]

    Converts this arraybuffer to a list.

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

    Converts this arraybuffer to a map.

  215. def toSeq: Seq[Node]

    Converts this arraybuffer to a sequence.

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

    Converts this arraybuffer to a set.

  217. def toStream: Stream[Node]

    Converts this arraybuffer to a stream.

  218. def toString(): String

    Converts this arraybuffer to a string.

  219. def toTraversable: Traversable[Node]

    Converts this arraybuffer to an unspecified Traversable.

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

    Transposes this arraybuffer of traversable collections into a arraybuffer of arraybuffers.

  221. def trimEnd(n: Int): Unit

    Removes the last n elements of this buffer.

  222. def trimStart(n: Int): Unit

    Removes the first n elements of this buffer.

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

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

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

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

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

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

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

    Replaces element at given index with a new value.

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

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

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

    A copy of this arraybuffer with one single replaced element.

  229. 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.

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

    Creates a view of this iterable @see Iterable.

  231. def wait(): Unit

  232. def wait(arg0: Long, arg1: Int): Unit

  233. def wait(arg0: Long): Unit

  234. def withFilter(p: (Node) ⇒ Boolean): FilterMonadic[Node, ArrayBuffer[Node]]

    Creates a non-strict filter of this arraybuffer.

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

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

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

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

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

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

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

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

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

    [use case] Zips this arraybuffer with its indices.

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

    Zips this arraybuffer with its indices.