|
|
Scala 2.3.3
|
abstract
trait
Buffer
[A]
extends java.lang.Object
with scala.Seq[A]
with scala.collection.mutable.Scriptable[scala.collection.mutable.Message[scala.Tuple2[scala.collection.mutable.Location, A]]]
with scala.ScalaObject
| Def Summary | |
def
+
(elem: A)
: scala.collection.mutable.Buffer[A]
Append a single element to this buffer and return the identity of the buffer. |
|
def
++
(iter: scala.Iterable[A])
: scala.collection.mutable.Buffer[A]
Appends a number of elements provided by an iterable object via its elements method. The identity of the
buffer is returned.
|
|
def
++
(iter: scala.Iterator[A])
: scala.collection.mutable.Buffer[A]
Appends a number of elements provided by an iterator via its elements method. The identity of the
buffer is returned.
|
|
def
++:
(iter: scala.Iterable[A])
: scala.collection.mutable.Buffer[A]
Prepends a number of elements provided by an iterable object via its elements method. The identity of the
buffer is returned.
|
|
def
++=
(iter: scala.Iterable[A])
: scala.Unit
Appends a number of elements provided by an iterable object via its elements method.
|
|
def
++=
(iter: scala.Iterator[A])
: scala.Unit
Appends a number of elements provided by an iterator |
|
def
++=
(src: scala.Array[A], start: scala.Int, len: scala.Int)
: scala.Unit
Appends a number of elements in an array |
|
abstract
|
def
+:
(elem: A)
: scala.collection.mutable.Buffer[A]
Prepend a single element to this buffer and return the identity of the buffer. |
abstract
|
def
+=
(elem: A)
: scala.Unit
Append a single element to this buffer. |
def
-=
(x: A)
: scala.Unit
Removes a single element from this buffer, at its first occurrence. If the list does not contain that element, it is unchanged |
|
def
<<
(cmd: scala.collection.mutable.Message[scala.Tuple2[scala.collection.mutable.Location, A]])
: scala.Unit
Send a message to this scriptable object. |
|
def
append
(elems: A*)
: scala.Unit
Appends a sequence of elements to this buffer. |
|
def
appendAll
(iter: scala.Iterable[A])
: scala.Unit
Appends a number of elements provided by an iterable object via its elements method.
|
|
abstract
|
def
clear
: scala.Unit
Clears the buffer contents. |
override
|
def
clone
: scala.collection.mutable.Buffer[A]
Return a clone of this buffer. |
override
|
def
hashCode
: scala.Int
The hashCode method always yields an error, since it is not safe to use buffers as keys in hash tables. |
def
insert
(n: scala.Int, elems: A*)
: scala.Unit
Inserts new elements at the index n. Opposed to method
update, this method will not replace an element with a
one. Instead, it will insert the new elements at index n.
|
|
abstract
|
def
insertAll
(n: scala.Int, iter: scala.Iterable[A])
: scala.Unit
Inserts new elements at the index 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.
|
def
prepend
(elems: A*)
: scala.Unit
Prepend an element to this list. |
|
def
prependAll
(iter: scala.Iterable[A])
: scala.Unit
Prepends a number of elements provided by an iterable object via its elements method. The identity of the
buffer is returned.
|
|
abstract
|
def
remove
(n: scala.Int)
: A
Removes the element on a given index position. |
override protected
|
def
stringPrefix
: java.lang.String
Defines the prefix of the string representation. |
def
trimEnd
(n: scala.Int)
: scala.Unit
Removes the last n elements.
|
|
def
trimStart
(n: scala.Int)
: scala.Unit
Removes the first n elements.
|
|
abstract
|
def
update
(n: scala.Int, newelem: A)
: scala.Unit
Replace element at index n with the new element
newelem.
|
| Def inherited from scala.Seq[A] | |
| ++ , concat, contains, copyToArray, drop, dropWhile, filter, flatMap, isDefinedAt, isEmpty, lastIndexOf, length, map, reverse, slice, stringPrefix, subseq, super$drop, super$dropWhile, super$filter, super$take, super$takeWhile, take, takeWhile, toArray, toString |
| Def inherited from scala.collection.mutable.Scriptable[scala.collection.mutable.Message[scala.Tuple2[scala.collection.mutable.Location, A]]] | |
| << |
| Def Detail |
def
+
(elem: A): scala.collection.mutable.Buffer[A]
elem - the element to append.
def
++
(iter: scala.Iterable[A]): scala.collection.mutable.Buffer[A]
elements method. The identity of the
buffer is returned.iter - the iterable object.
def
++
(iter: scala.Iterator[A]): scala.collection.mutable.Buffer[A]
elements method. The identity of the
buffer is returned.iter - the iterator
def
++:
(iter: scala.Iterable[A]): scala.collection.mutable.Buffer[A]
elements method. The identity of the
buffer is returned.iter - the iterable object.
def
++=
(iter: scala.Iterable[A]): scala.Unit
elements method.iter - the iterable object.
def
++=
(iter: scala.Iterator[A]): scala.Unit
iter - the iterator.
def
++=
(src: scala.Array[A], start: scala.Int, len: scala.Int): scala.Unit
src - the array
start - the first element to append
len - the number of elements to append
abstract
def
+:
(elem: A): scala.collection.mutable.Buffer[A]
elem - the element to append.
abstract
def
+=
(elem: A): scala.Unit
elem - the element to append.
def
-=
(x: A): scala.Unit
x - the element to remove.
def
<<
(cmd: scala.collection.mutable.Message[scala.Tuple2[scala.collection.mutable.Location, A]]): scala.Unit
cmd - the message to send.
def
append
(elems: A*): scala.Unit
elems - the elements to append.
def
appendAll
(iter: scala.Iterable[A]): scala.Unit
elements method.iter - the iterable object.
abstract
def
clear
: scala.Unit
override
def
clone
: scala.collection.mutable.Buffer[A]
override
def
hashCode
: scala.Int
def
insert
(n: scala.Int, elems: A*): scala.Unit
n. Opposed to method
update, this method will not replace an element with a
one. Instead, it will insert the new elements at index n.n - the index where a new element will be inserted.
elems - the new elements to insert.
abstract
def
insertAll
(n: scala.Int, iter: scala.Iterable[A]): scala.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
prepend
(elems: A*): scala.Unit
elem - the element to prepend.
def
prependAll
(iter: scala.Iterable[A]): scala.Unit
elements method. The identity of the
buffer is returned.iter - the iterable object.
n - the index which refers to the element to delete.
override protected
def
stringPrefix
: java.lang.String
def
trimEnd
(n: scala.Int): scala.Unit
n elements.n - the number of elements to remove from the end of this buffer.
def
trimStart
(n: scala.Int): scala.Unit
n elements.n - the number of elements to remove from the beginning of this buffer.
abstract
def
update
(n: scala.Int, newelem: A): scala.Unit
n with the new element
newelem.n - the index of the element to replace.
newelem - the new element.