Class

com.thoughtworks.binding

SafeBuffer

Related Doc: package binding

Permalink

final class SafeBuffer[A] extends Buffer[A]

Similar to scala.collection.mutable.ArrayBuffer, except that this SafeBuffer allows adding or removing elements via += and -= inside a foreach block.

Source
SafeBuffer.scala
Note

A java.lang.IllegalStateException will be thrown when invoking methods other than += and -= in a foreach block.

Linear Supertypes
Buffer[A], BufferLike[A, Buffer[A]], Subtractable[A, Buffer[A]], Scriptable[A], Shrinkable[A], Growable[A], Clearable, Seq[A], SeqLike[A, Buffer[A]], Cloneable[Buffer[A]], Cloneable, Cloneable, Seq[A], SeqLike[A, Buffer[A]], GenSeq[A], GenSeqLike[A, Buffer[A]], PartialFunction[Int, A], (Int) ⇒ A, Iterable[A], Iterable[A], IterableLike[A, Buffer[A]], Equals, GenIterable[A], GenIterableLike[A, Buffer[A]], Traversable[A], Mutable, Traversable[A], GenTraversable[A], GenericTraversableTemplate[A, Buffer], TraversableLike[A, Buffer[A]], GenTraversableLike[A, Buffer[A]], Parallelizable[A, ParSeq[A]], TraversableOnce[A], GenTraversableOnce[A], FilterMonadic[A, Buffer[A]], HasNewBuilder[A, scala.collection.mutable.Buffer[A] @scala.annotation.unchecked.uncheckedVariance], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SafeBuffer
  2. Buffer
  3. BufferLike
  4. Subtractable
  5. Scriptable
  6. Shrinkable
  7. Growable
  8. Clearable
  9. Seq
  10. SeqLike
  11. Cloneable
  12. Cloneable
  13. Cloneable
  14. Seq
  15. SeqLike
  16. GenSeq
  17. GenSeqLike
  18. PartialFunction
  19. Function1
  20. Iterable
  21. Iterable
  22. IterableLike
  23. Equals
  24. GenIterable
  25. GenIterableLike
  26. Traversable
  27. Mutable
  28. Traversable
  29. GenTraversable
  30. GenericTraversableTemplate
  31. TraversableLike
  32. GenTraversableLike
  33. Parallelizable
  34. TraversableOnce
  35. GenTraversableOnce
  36. FilterMonadic
  37. HasNewBuilder
  38. AnyRef
  39. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by MonadOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  7. by alternateImplicit
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SafeBuffer()

    Permalink

Type Members

  1. type Self = Buffer[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to any2stringadd[SafeBuffer[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++(xs: GenTraversableOnce[A]): Buffer[A]

    Permalink
    Definition Classes
    BufferLike
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) ++ creates a new buffer. Use ++= to add an element from this buffer and return that buffer itself.

  5. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  7. def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  8. def ++=(xs: TraversableOnce[A]): SafeBuffer.this.type

    Permalink
    Definition Classes
    Growable
  9. def ++=:(xs: TraversableOnce[A]): SafeBuffer.this.type

    Permalink
    Definition Classes
    BufferLike
  10. def +:[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  11. def +=(x: A): SafeBuffer.this.type

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → Growable
    Annotations
    @inline()
  12. def +=(elem1: A, elem2: A, elems: A*): SafeBuffer.this.type

    Permalink
    Definition Classes
    Growable
  13. def +=:(elem: A): SafeBuffer.this.type

    Permalink
    Definition Classes
    SafeBuffer → BufferLike
  14. def -(elem1: A, elem2: A, elems: A*): Buffer[A]

    Permalink
    Definition Classes
    BufferLike → Subtractable
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) - creates a new buffer. Use -= to remove an element from this buffer and return that buffer itself.

  15. def -(elem: A): Buffer[A]

    Permalink
    Definition Classes
    BufferLike → Subtractable
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) - creates a new buffer. Use -= to remove an element from this buffer and return that buffer itself.

  16. def --(xs: GenTraversableOnce[A]): Buffer[A]

    Permalink
    Definition Classes
    BufferLike → Subtractable
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) -- creates a new buffer. Use --= to remove an element from this buffer and return that buffer itself.

  17. def --=(xs: TraversableOnce[A]): SafeBuffer.this.type

    Permalink
    Definition Classes
    Shrinkable
  18. def -=(x: A): SafeBuffer.this.type

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → Shrinkable
    Annotations
    @inline()
  19. def -=(elem1: A, elem2: A, elems: A*): SafeBuffer.this.type

    Permalink
    Definition Classes
    Shrinkable
  20. def ->[B](y: B): (SafeBuffer[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to ArrowAssoc[SafeBuffer[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  21. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def :+[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  23. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  26. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  27. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  28. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  29. def andThen[C](k: (A) ⇒ C): PartialFunction[Int, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  30. def append(elems: A*): Unit

    Permalink
    Definition Classes
    BufferLike
  31. def appendAll(xs: TraversableOnce[A]): Unit

    Permalink
    Definition Classes
    BufferLike
  32. def apply(n: Int): A

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → SeqLike → GenSeqLike → Function1
  33. def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  34. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  35. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  36. def clear(): Unit

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → Growable → Clearable
  37. def clone(): Buffer[A]

    Permalink
    Definition Classes
    BufferLike → Cloneable → AnyRef
  38. def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  39. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  40. def combinations(n: Int): Iterator[Buffer[A]]

    Permalink
    Definition Classes
    SeqLike
  41. def companion: GenericCompanion[Buffer]

    Permalink
    Definition Classes
    Buffer → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  42. def compose[A](g: (A) ⇒ Int): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  43. def contains[A1 >: A](elem: A1): Boolean

    Permalink
    Definition Classes
    SeqLike
  44. def containsSlice[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike
  45. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  46. def copyToArray[B >: A](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  47. def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  48. def copyToBuffer[B >: A](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  49. def corresponds[B](that: GenSeq[B])(p: (A, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  50. def count(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  51. def diff[B >: A](that: GenSeq[B]): Buffer[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  52. def distinct: Buffer[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  53. def drop(n: Int): Buffer[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  54. def dropRight(n: Int): Buffer[A]

    Permalink
    Definition Classes
    IterableLike
  55. def dropWhile(p: (A) ⇒ Boolean): Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  56. def endsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  57. def ensuring(cond: (SafeBuffer[A]) ⇒ Boolean, msg: ⇒ Any): SafeBuffer[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to Ensuring[SafeBuffer[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  58. def ensuring(cond: (SafeBuffer[A]) ⇒ Boolean): SafeBuffer[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to Ensuring[SafeBuffer[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  59. def ensuring(cond: Boolean, msg: ⇒ Any): SafeBuffer[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to Ensuring[SafeBuffer[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  60. def ensuring(cond: Boolean): SafeBuffer[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to Ensuring[SafeBuffer[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  61. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  62. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    GenSeqLike → Equals → Any
  63. def exists(p: (A) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  64. def filter(p: (A) ⇒ Boolean): Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  65. def filterNot(p: (A) ⇒ Boolean): Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  66. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  67. def find(p: (A) ⇒ Boolean): Option[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  68. def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  69. def flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Buffer[B]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  70. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  72. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  73. def forall(p: (A) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  74. def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Definition Classes
    SafeBuffer → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  75. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to StringFormat[SafeBuffer[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  76. def genericBuilder[B]: Builder[B, Buffer[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  77. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  78. def groupBy[K](f: (A) ⇒ K): Map[K, Buffer[A]]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  79. def grouped(size: Int): Iterator[Buffer[A]]

    Permalink
    Definition Classes
    IterableLike
  80. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  81. def hashCode(): Int

    Permalink
    Definition Classes
    GenSeqLike → Any
  82. def head: A

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  83. def headOption: Option[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  84. def indexOf[B >: A](elem: B, from: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  85. def indexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  86. def indexOfSlice[B >: A](that: GenSeq[B], from: Int): Int

    Permalink
    Definition Classes
    SeqLike
  87. def indexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  88. def indexWhere(p: (A) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  89. def indexWhere(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  90. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  91. def init: Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  92. def inits: Iterator[Buffer[A]]

    Permalink
    Definition Classes
    TraversableLike
  93. def insert(n: Int, elems: A*): Unit

    Permalink
    Definition Classes
    BufferLike
  94. def insertAll(n: Int, elems: Traversable[A]): Unit

    Permalink
    Definition Classes
    SafeBuffer → BufferLike
  95. def intersect[B >: A](that: GenSeq[B]): Buffer[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  96. def isDefinedAt(idx: Int): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  97. def isEmpty: Boolean

    Permalink
    Definition Classes
    SafeBuffer → SeqLike → IterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @inline()
  98. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  99. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  100. def iterator: Iterator[A]

    Permalink
    Definition Classes
    SafeBuffer → IterableLike → GenIterableLike
  101. def last: A

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  102. def lastIndexOf[B >: A](elem: B, end: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  103. def lastIndexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  104. def lastIndexOfSlice[B >: A](that: GenSeq[B], end: Int): Int

    Permalink
    Definition Classes
    SeqLike
  105. def lastIndexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  106. def lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  107. def lastIndexWhere(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  108. def lastOption: Option[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  109. def length: Int

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → SeqLike → GenSeqLike
  110. def lengthCompare(len: Int): Int

    Permalink
    Definition Classes
    SeqLike
  111. def lift: (Int) ⇒ Option[A]

    Permalink
    Definition Classes
    PartialFunction
  112. def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  113. def max[B >: A](implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def min[B >: A](implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  117. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  121. def newBuilder: Builder[A, Buffer[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  122. def nonEmpty: Boolean

    Permalink
    Definition Classes
    SafeBuffer → TraversableOnce → GenTraversableOnce
    Annotations
    @inline()
  123. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  124. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  125. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  126. def padTo[B >: A, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  127. def par: ParSeq[A]

    Permalink
    Definition Classes
    Parallelizable
  128. def parCombiner: Combiner[A, ParSeq[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → SeqLike → TraversableLike → Parallelizable
  129. def partition(p: (A) ⇒ Boolean): (Buffer[A], Buffer[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  130. def patch[B >: A, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  131. def permutations: Iterator[Buffer[A]]

    Permalink
    Definition Classes
    SeqLike
  132. def prefixLength(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  133. def prepend(elems: A*): Unit

    Permalink
    Definition Classes
    BufferLike
  134. def prependAll(xs: TraversableOnce[A]): Unit

    Permalink
    Definition Classes
    BufferLike
  135. def product[B >: A](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  136. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  138. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  139. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  140. def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  141. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def remove(n: Int): A

    Permalink
    Definition Classes
    SafeBuffer → BufferLike
  143. def remove(n: Int, count: Int): Unit

    Permalink
    Definition Classes
    BufferLike
  144. def repr: Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  145. def reverse: Buffer[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  146. def reverseIterator: Iterator[A]

    Permalink
    Definition Classes
    SeqLike
  147. def reverseMap[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  148. def reversed: List[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  149. def runWith[U](action: (A) ⇒ U): (Int) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  150. def sameElements[B >: A](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  151. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  152. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  153. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  154. def segmentLength(p: (A) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  155. def seq: Seq[A]

    Permalink
    Definition Classes
    Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  156. def size: Int

    Permalink
    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  157. def slice(from: Int, until: Int): Buffer[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  158. def sliding(size: Int, step: Int): Iterator[Buffer[A]]

    Permalink
    Definition Classes
    IterableLike
  159. def sliding(size: Int): Iterator[Buffer[A]]

    Permalink
    Definition Classes
    IterableLike
  160. def sortBy[B](f: (A) ⇒ B)(implicit ord: Ordering[B]): Buffer[A]

    Permalink
    Definition Classes
    SeqLike
  161. def sortWith(lt: (A, A) ⇒ Boolean): Buffer[A]

    Permalink
    Definition Classes
    SeqLike
  162. def sorted[B >: A](implicit ord: Ordering[B]): Buffer[A]

    Permalink
    Definition Classes
    SeqLike
  163. def span(p: (A) ⇒ Boolean): (Buffer[A], Buffer[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  164. def splitAt(n: Int): (Buffer[A], Buffer[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  165. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  166. def startsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  167. def stringPrefix: String

    Permalink
    Definition Classes
    BufferLike → TraversableLike → GenTraversableLike
  168. def sum[B >: A](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  169. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  170. def tail: Buffer[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  171. def tails: Iterator[Buffer[A]]

    Permalink
    Definition Classes
    TraversableLike
  172. def take(n: Int): Buffer[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  173. def takeRight(n: Int): Buffer[A]

    Permalink
    Definition Classes
    IterableLike
  174. def takeWhile(p: (A) ⇒ Boolean): Buffer[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  175. def thisCollection: Seq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  176. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  177. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  178. def toBuffer[B >: A]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. def toCollection(repr: Buffer[A]): Seq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  180. def toIndexedSeq: IndexedSeq[A]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  181. def toIterable: Iterable[A]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  182. def toIterator: Iterator[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  183. def toList: List[A]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  184. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  185. def toParArray: ParArray[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to CollectionsHaveToParArray[SafeBuffer[A], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (SafeBuffer[A]) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray
  186. def toSeq: Seq[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  187. def toSet[B >: A]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  188. def toStream: Stream[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  189. def toString(): String

    Permalink
    Definition Classes
    SeqLike → TraversableLike → Any
  190. def toTraversable: Traversable[A]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  191. def toVector: Vector[A]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  192. def transform(f: (A) ⇒ A): SafeBuffer.this.type

    Permalink
    Definition Classes
    SeqLike
  193. def transpose[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Buffer[Buffer[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  194. def trimEnd(n: Int): Unit

    Permalink
    Definition Classes
    BufferLike
  195. def trimStart(n: Int): Unit

    Permalink
    Definition Classes
    BufferLike
  196. def union[B >: A, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  197. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Buffer[A1], Buffer[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  198. def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (Buffer[A1], Buffer[A2], Buffer[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  199. def update(n: Int, newelem: A): Unit

    Permalink
    Definition Classes
    SafeBuffer → BufferLike → SeqLike
  200. def updated[B >: A, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  201. def view(from: Int, until: Int): SeqView[A, Buffer[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  202. def view: SeqView[A, Buffer[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  203. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  204. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  205. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  206. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Buffer[A]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  207. def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Buffer[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  208. def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Buffer[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  209. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Buffer[A], (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  210. def [B](y: B): (SafeBuffer[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to ArrowAssoc[SafeBuffer[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def filter(p: (A) ⇒ Boolean): TraversableOnce[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to MonadOps[A] performed by method MonadOps in scala.collection.TraversableOnce.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (safeBuffer: MonadOps[A]).filter(p)
    Definition Classes
    MonadOps
  2. def flatMap[B](f: (A) ⇒ GenTraversableOnce[B]): TraversableOnce[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to MonadOps[A] performed by method MonadOps in scala.collection.TraversableOnce.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (safeBuffer: MonadOps[A]).flatMap(f)
    Definition Classes
    MonadOps
  3. def map[B](f: (A) ⇒ B): TraversableOnce[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to MonadOps[A] performed by method MonadOps in scala.collection.TraversableOnce.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (safeBuffer: MonadOps[A]).map(f)
    Definition Classes
    MonadOps
  4. def withFilter(p: (A) ⇒ Boolean): Iterator[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from SafeBuffer[A] to MonadOps[A] performed by method MonadOps in scala.collection.TraversableOnce.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (safeBuffer: MonadOps[A]).withFilter(p)
    Definition Classes
    MonadOps

Deprecated Value Members

  1. def <<(cmd: Message[A]): Unit

    Permalink
    Definition Classes
    BufferLike → Scriptable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) Scripting is deprecated.

  2. def readOnly: Seq[A]

    Permalink
    Definition Classes
    BufferLike
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) The returned sequence changes as this buffer is mutated. For an immutable copy, use, e.g., toList.

Inherited from Buffer[A]

Inherited from BufferLike[A, Buffer[A]]

Inherited from Subtractable[A, Buffer[A]]

Inherited from Scriptable[A]

Inherited from Shrinkable[A]

Inherited from Growable[A]

Inherited from Clearable

Inherited from Seq[A]

Inherited from SeqLike[A, Buffer[A]]

Inherited from Cloneable[Buffer[A]]

Inherited from Cloneable

Inherited from Cloneable

Inherited from Seq[A]

Inherited from SeqLike[A, Buffer[A]]

Inherited from GenSeq[A]

Inherited from GenSeqLike[A, Buffer[A]]

Inherited from PartialFunction[Int, A]

Inherited from (Int) ⇒ A

Inherited from Iterable[A]

Inherited from Iterable[A]

Inherited from IterableLike[A, Buffer[A]]

Inherited from Equals

Inherited from GenIterable[A]

Inherited from GenIterableLike[A, Buffer[A]]

Inherited from Traversable[A]

Inherited from Mutable

Inherited from Traversable[A]

Inherited from GenTraversable[A]

Inherited from GenericTraversableTemplate[A, Buffer]

Inherited from TraversableLike[A, Buffer[A]]

Inherited from GenTraversableLike[A, Buffer[A]]

Inherited from Parallelizable[A, ParSeq[A]]

Inherited from TraversableOnce[A]

Inherited from GenTraversableOnce[A]

Inherited from FilterMonadic[A, Buffer[A]]

Inherited from HasNewBuilder[A, scala.collection.mutable.Buffer[A] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion CollectionsHaveToParArray from SafeBuffer[A] to CollectionsHaveToParArray[SafeBuffer[A], T]

Inherited by implicit conversion MonadOps from SafeBuffer[A] to MonadOps[A]

Inherited by implicit conversion any2stringadd from SafeBuffer[A] to any2stringadd[SafeBuffer[A]]

Inherited by implicit conversion StringFormat from SafeBuffer[A] to StringFormat[SafeBuffer[A]]

Inherited by implicit conversion Ensuring from SafeBuffer[A] to Ensuring[SafeBuffer[A]]

Inherited by implicit conversion ArrowAssoc from SafeBuffer[A] to ArrowAssoc[SafeBuffer[A]]

Inherited by implicit conversion alternateImplicit from SafeBuffer[A] to ForceImplicitAmbiguity

Ungrouped