final
class
SafeBuffer[A] extends Buffer[A]
Instance Constructors
-
new
SafeBuffer()
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
-
-
def
++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
-
-
def
+:[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
+=(x: A): SafeBuffer.this.type
-
def
+=(elem1: A, elem2: A, elems: A*): SafeBuffer.this.type
-
def
+=:(elem: A): SafeBuffer.this.type
-
def
-(elem1: A, elem2: A, elems: A*): Buffer[A]
-
def
-(elem: A): Buffer[A]
-
-
-
def
-=(x: A): SafeBuffer.this.type
-
def
-=(elem1: A, elem2: A, elems: A*): SafeBuffer.this.type
-
def
->[B](y: B): (SafeBuffer[A], B)
-
def
/:[B](z: B)(op: (B, A) ⇒ B): B
-
def
:+[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
:\[B](z: B)(op: (A, B) ⇒ B): B
-
final
def
==(arg0: Any): Boolean
-
def
addString(b: StringBuilder): StringBuilder
-
def
addString(b: StringBuilder, sep: String): StringBuilder
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
-
def
aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B
-
-
def
append(elems: A*): Unit
-
-
def
apply(n: Int): A
-
def
applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) ⇒ B1): B1
-
final
def
asInstanceOf[T0]: T0
-
def
canEqual(that: Any): Boolean
-
def
clear(): Unit
-
def
clone(): Buffer[A]
-
def
collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
-
-
-
def
compose[A](g: (A) ⇒ Int): (A) ⇒ A
-
def
contains[A1 >: A](elem: A1): Boolean
-
def
containsSlice[B](that: GenSeq[B]): Boolean
-
def
copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
-
def
copyToArray[B >: A](xs: Array[B]): Unit
-
def
copyToArray[B >: A](xs: Array[B], start: Int): Unit
-
def
copyToBuffer[B >: A](dest: Buffer[B]): Unit
-
def
corresponds[B](that: GenSeq[B])(p: (A, B) ⇒ Boolean): Boolean
-
def
count(p: (A) ⇒ Boolean): Int
-
def
diff[B >: A](that: GenSeq[B]): Buffer[A]
-
def
distinct: Buffer[A]
-
-
def
dropRight(n: Int): Buffer[A]
-
def
dropWhile(p: (A) ⇒ Boolean): Buffer[A]
-
def
endsWith[B](that: GenSeq[B]): Boolean
-
-
-
-
-
-
-
-
-
def
filterNot(p: (A) ⇒ Boolean): Buffer[A]
-
def
finalize(): Unit
-
-
-
def
flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): Buffer[B]
-
def
fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1
-
def
foldLeft[B](z: B)(op: (B, A) ⇒ B): B
-
def
foldRight[B](z: B)(op: (A, B) ⇒ B): B
-
-
def
foreach[U](f: (A) ⇒ U): Unit
-
def
formatted(fmtstr: String): String
-
def
genericBuilder[B]: Builder[B, Buffer[B]]
-
final
def
getClass(): Class[_]
-
def
groupBy[K](f: (A) ⇒ K): Map[K, Buffer[A]]
-
-
def
hasDefiniteSize: Boolean
-
def
hashCode(): Int
-
def
head: A
-
def
headOption: Option[A]
-
def
indexOf[B >: A](elem: B, from: Int): Int
-
def
indexOf[B >: A](elem: B): Int
-
def
indexOfSlice[B >: A](that: GenSeq[B], from: Int): Int
-
def
indexOfSlice[B >: A](that: GenSeq[B]): Int
-
def
indexWhere(p: (A) ⇒ Boolean, from: Int): Int
-
def
indexWhere(p: (A) ⇒ Boolean): Int
-
def
indices: Range
-
def
init: Buffer[A]
-
-
def
insert(n: Int, elems: A*): Unit
-
def
insertAll(n: Int, elems: Traversable[A]): Unit
-
def
intersect[B >: A](that: GenSeq[B]): Buffer[A]
-
def
isDefinedAt(idx: Int): Boolean
-
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
isTraversableAgain: Boolean
-
def
iterator: Iterator[A]
-
def
last: A
-
def
lastIndexOf[B >: A](elem: B, end: Int): Int
-
def
lastIndexOf[B >: A](elem: B): Int
-
def
lastIndexOfSlice[B >: A](that: GenSeq[B], end: Int): Int
-
def
lastIndexOfSlice[B >: A](that: GenSeq[B]): Int
-
def
lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int
-
def
lastIndexWhere(p: (A) ⇒ Boolean): Int
-
def
lastOption: Option[A]
-
def
length: Int
-
def
lengthCompare(len: Int): Int
-
-
def
map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
max[B >: A](implicit cmp: Ordering[B]): A
-
def
maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
-
def
min[B >: A](implicit cmp: Ordering[B]): A
-
def
minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A
-
def
mkString: String
-
def
mkString(sep: String): String
-
def
mkString(start: String, sep: String, end: String): String
-
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
padTo[B >: A, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
-
def
parCombiner: Combiner[A, ParSeq[A]]
-
-
def
patch[B >: A, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
-
def
prefixLength(p: (A) ⇒ Boolean): Int
-
def
prepend(elems: A*): Unit
-
-
def
product[B >: A](implicit num: Numeric[B]): B
-
def
reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1
-
def
reduceLeft[B >: A](op: (B, A) ⇒ B): B
-
def
reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]
-
def
reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]
-
def
reduceRight[B >: A](op: (A, B) ⇒ B): B
-
def
reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]
-
def
remove(n: Int): A
-
def
remove(n: Int, count: Int): Unit
-
def
repr: Buffer[A]
-
def
reverse: Buffer[A]
-
def
reverseIterator: Iterator[A]
-
def
reverseMap[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
reversed: List[A]
-
def
runWith[U](action: (A) ⇒ U): (Int) ⇒ Boolean
-
def
sameElements[B >: A](that: GenIterable[B]): Boolean
-
def
scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Buffer[A], B, That]): That
-
def
scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
segmentLength(p: (A) ⇒ Boolean, from: Int): Int
-
def
seq: Seq[A]
-
def
size: Int
-
def
slice(from: Int, until: Int): Buffer[A]
-
-
-
def
sortBy[B](f: (A) ⇒ B)(implicit ord: Ordering[B]): Buffer[A]
-
def
sortWith(lt: (A, A) ⇒ Boolean): Buffer[A]
-
def
sorted[B >: A](implicit ord: Ordering[B]): Buffer[A]
-
-
-
def
startsWith[B](that: GenSeq[B], offset: Int): Boolean
-
def
startsWith[B](that: GenSeq[B]): Boolean
-
def
stringPrefix: String
-
def
sum[B >: A](implicit num: Numeric[B]): B
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
tail: Buffer[A]
-
-
-
def
takeRight(n: Int): Buffer[A]
-
def
takeWhile(p: (A) ⇒ Boolean): Buffer[A]
-
def
thisCollection: Seq[A]
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]
-
def
toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
-
def
toBuffer[B >: A]: Buffer[B]
-
def
toCollection(repr: Buffer[A]): Seq[A]
-
def
toIndexedSeq: IndexedSeq[A]
-
def
toIterable: Iterable[A]
-
def
toIterator: Iterator[A]
-
def
toList: List[A]
-
def
toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]
-
def
toParArray: ParArray[T]
-
def
toSeq: Seq[A]
-
def
toSet[B >: A]: Set[B]
-
def
toStream: Stream[A]
-
def
toString(): String
-
-
def
toVector: Vector[A]
-
def
transform(f: (A) ⇒ A): SafeBuffer.this.type
-
-
def
trimEnd(n: Int): Unit
-
def
trimStart(n: Int): Unit
-
def
union[B >: A, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
def
unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Buffer[A1], Buffer[A2])
-
def
unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (Buffer[A1], Buffer[A2], Buffer[A3])
-
def
update(n: Int, newelem: A): Unit
-
def
updated[B >: A, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Buffer[A], B, That]): That
-
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
-
def
zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Buffer[A], (A1, B), That]): That
-
def
zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Buffer[A], (A1, B), That]): That
-
def
zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Buffer[A], (A1, Int), That]): That
-
def
→[B](y: B): (SafeBuffer[A], B)
Shadowed Implicit Value Members
-
-
-
-
Deprecated Value Members
-
def
<<(cmd: Message[A]): Unit
-
def
readOnly: Seq[A]
Inherited from HasNewBuilder[A, scala.collection.mutable.Buffer[A] @scala.annotation.unchecked.uncheckedVariance]
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 alternateImplicit from
SafeBuffer[A] to ForceImplicitAmbiguity
Similar to scala.collection.mutable.ArrayBuffer, except that this SafeBuffer allows adding or removing elements via += and -= inside a foreach block.
A java.lang.IllegalStateException will be thrown when invoking methods other than += and -= in a foreach block.