|
Scala
1.4.0.3 |
|||
Buffer class into which this abstract
class is mixed in. Class ObservableBuffer publishes
events of the type Message.
| Method Summary | |
override
|
def +(element: A): Buffer[A]
Append a single element to this buffer and return the identity of the buffer. |
override
|
def +:(element: A): Buffer[A]
Prepend a single element to this buffer and return the identity of the buffer. |
override
|
def clear: Unit
Clears the buffer contents. |
override
|
def insertAll(n: Int, iter: Iterable[A]): Unit
Inserts new elements at the index n.
|
override
|
def remove(n: Int): A
Removes the element on a given index position. |
override
|
def update(n: Int, newelement: A): Unit
Replace element at index n with the new element
newelem.
|
| Methods inherited from java/lang/Object-class |
| eq, equals, finalize, getClass, ne, notify, notifyAll, synchronized, wait, wait, wait |
| Methods inherited from scala/Any-class |
| !=, ==, asInstanceOf, isInstanceOf, match |
| Methods inherited from scala/Function1-class |
| apply |
| Methods inherited from scala/Iterable-class |
| /:, :\, concat, elements, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
| Methods inherited from scala/ScalaObject-class |
| getScalaType |
| Methods inherited from scala/Seq-class |
| concat, copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, length, subseq, take, toList, toString |
| Methods inherited from scala/collection/mutable/Buffer-class |
| ++, ++, ++:, ++=, ++=, +=, <<, append, appendAll, clone, hashCode, insert, prepend, prependAll, stringPrefix, trimEnd, trimStart |
| Methods inherited from scala/collection/mutable/Publisher-class |
| activateSubscription, publish, removeSubscription, removeSubscriptions, subscribe, subscribe, suspendSubscription |
| Method Detail |
override def +(element: A): Buffer[A]
elem -
the element to append.
override def +:(element: A): Buffer[A]
elem -
the element to append.
override 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.
override def update(n: Int, newelement: A): Unit
n with the new element
newelem.
n -
the index of the element to replace.
newelem -
the new element.
override def remove(n: Int): A
n -
the index which refers to the element to delete.
override def clear: Unit
|
Scala
1.4.0.3 |
|||