|
Scala
1.2.0.1 |
|||
Method Summary | |
def +(elem: A): Buffer[A]
Append a single element to this buffer and return the identity of the buffer. |
|
def +:(elem: A): Buffer[A]
Prepend a single element to this buffer and return the identity of the buffer. |
|
def clear: Unit
Clears the buffer contents. |
|
override
|
def clone(): Buffer[A]
Return a clone of this buffer. |
override
|
def equals(obj: Any): Boolean
Checks if two buffers are structurally identical. |
def insertAll(n: Int, iter: Iterable[A]): Unit
Inserts new elements at the index n .
|
|
def remove(n: Int): A
Removes the element on a given index position. |
|
protected override
|
def stringPrefix: String
Defines the prefix of the string representation. |
def update(n: Int, newelem: A): Unit
Replace element at index n with the new element
newelem .
|
Methods inherited from java/lang/Object-class |
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/Seq-class |
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, subseq, take, toString |
Methods inherited from scala/collection/mutable/Buffer-class |
++, ++, ++:, ++=, ++=, +=, <<, append, appendAll, hashCode, insert, prepend, prependAll, trimEnd, trimStart |
Methods inherited from scala/collection/mutable/MutableList-class |
appendElem, apply, elements, first, get, last, len, length, prependElem, reset, toList |
Method Detail |
def +(elem: A): Buffer[A]
elem
-
the element to append.
def +:(elem: A): Buffer[A]
elem
-
the element to append.
def insertAll(n: Int, iter: Iterable[A]): Unit
n
. Opposed to method
update
, this method will not replace an element with a
one. Instead, it will insert a new element at index n
.
n
-
the index where a new element will be inserted.
iter
-
the iterable object providing all elements to insert.
def update(n: Int, newelem: A): Unit
n
with the new element
newelem
.
n
-
the index of the element to replace.
newelem
-
the new element.
def remove(n: Int): A
n
-
the index which refers to the element to delete.
def clear: Unit
override def clone(): Buffer[A]
ArrayBuffer
with the same elements.
override def equals(obj: Any): Boolean
protected override def stringPrefix: String
|
Scala
1.2.0.1 |
|||