|
Scala
1.3.0.4 |
|||
scala.collection.mutable.Buffer.
It is most useful for assembling customized set abstractions
dynamically using object composition and forwarding.
| Method Summary | |
def +(elem: A): Buffer[A]
Append a single element to this buffer and return the identity of the buffer. |
|
override
|
def ++(iter: Iterable[A]): Buffer[A]
Appends a number of elements provided by an iterable object via its elements method.
|
def ++(iter: Iterator[A]): Buffer[A]
Appends a number of elements provided by an iterable object via its elements method.
|
|
override
|
def ++:(iter: Iterable[A]): Buffer[A]
Prepends a number of elements provided by an iterable object via its elements method.
|
override
|
def ++=(iter: Iterable[A]): Unit
Appends a number of elements provided by an iterable object via its elements method.
|
def ++=(it: Iterator[A]): Unit
Appends a number of elements provided by an iterable object via its elements method.
|
|
def +:(elem: A): Buffer[A]
Prepend a single element to this buffer and return the identity of the buffer. |
|
override
|
def +=(elem: A): Unit
Append a single element to this buffer. |
override
|
def <<(cmd: Message[Tuple2[Location,A]]): Unit
Send a message to this scriptable object. |
override
|
def append(elems: A*): Unit
Appends a sequence of elements to this buffer. |
override
|
def appendAll(iter: Iterable[A]): Unit
Appends a number of elements provided by an iterable object via its elements method.
|
def apply(n: Int): A
|
|
def clear: Unit
Clears the buffer contents. |
|
override
|
def clone(): Buffer[A]
Return a clone of this buffer. |
def elements: Iterator[A]
Creates a new iterator over all elements contained in this object. |
|
override
|
def insert(n: Int, elems: A*): Unit
Inserts new elements at the index n.
|
def insertAll(n: Int, iter: Iterable[A]): Unit
Inserts new elements at the index n.
|
|
def length: Int
Returns the length of the sequence. |
|
override
|
def prepend(elems: A*): Unit
Prepend an element to this list. |
override
|
def prependAll(elems: Iterable[A]): Unit
Prepends a number of elements provided by an iterable object via its elements method.
|
def remove(n: Int): A
Removes the element on a given index position. |
|
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/Proxy-class |
| equals, hashCode, toString |
| Methods inherited from scala/Seq-class |
| copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, subseq, take, toList |
| Methods inherited from scala/collection/mutable/Buffer-class |
| ++, ++=, stringPrefix, trimEnd, trimStart |
| Method Detail |
def length: Int
def elements: Iterator[A]
def apply(n: Int): A
def +(elem: A): Buffer[A]
elem -
the element to append.
override def +=(elem: A): Unit
elem -
the element to append.
override def ++(iter: Iterable[A]): Buffer[A]
elements method. The identity of the
buffer is returned.
iter -
the iterable object.
def ++(iter: Iterator[A]): Buffer[A]
elements method. The identity of the
buffer is returned.
iter -
the iterable object.
override def ++=(iter: Iterable[A]): Unit
elements method.
iter -
the iterable object.
def ++=(it: Iterator[A]): Unit
elements method.
iter -
the iterable object.
override def append(elems: A*): Unit
elems -
the elements to append.
override def appendAll(iter: Iterable[A]): Unit
elements method.
iter -
the iterable object.
def +:(elem: A): Buffer[A]
elem -
the element to append.
override def ++:(iter: Iterable[A]): Buffer[A]
elements method. The identity of the
buffer is returned.
iter -
the iterable object.
override def prepend(elems: A*): Unit
elem -
the element to prepend.
override def prependAll(elems: Iterable[A]): Unit
elements method. The identity of the
buffer is returned.
iter -
the iterable object.
override def insert(n: Int, elems: A*): 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.
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 <<(cmd: Message[Tuple2[Location,A]]): Unit
cmd -
the message to send.
override def clone(): Buffer[A]
Buffer with the same elements.
|
Scala
1.3.0.4 |
|||