|
Scala Library Documentation
|
|
trait
ObservableBuffer[A, This <: ObservableBuffer[A, This]]
extends Buffer[A] with Publisher[Message[(Location, A)] with Undoable, This]Buffer class into which this abstract
class is mixed in. Class ObservableBuffer publishes
events of the type Message.| Method Summary | |
def
|
+
(element : A) : Buffer[A]
Append a single element to this buffer and return
the identity of the buffer.
|
def
|
+:
(element : A) : Buffer[A]
Prepend a single element to this buffer and return
the identity of the buffer.
|
def
|
clear
: Unit
Clears the buffer contents.
|
def
|
insertAll
(n : Int, iter : Iterable[A]) : 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
|
remove
(n : Int) : A
Removes the element on a given index position.
|
def
|
update
(n : Int, newelement : A) : Unit
Replace element at index
n with the new element
newelem. |
| Methods inherited from Publisher | |
| subscribe, subscribe, suspendSubscription, activateSubscription, removeSubscription, removeSubscriptions, publish |
| Methods inherited from Buffer | |
| += (abstract), ++=, ++=, ++=, ++, ++, ++:, -=, append, appendAll, prepend, prependAll, insert, trimStart, trimEnd, <<, clone, hashCode, stringPrefix |
| Methods inherited from Seq | |
| length (abstract), size, isEmpty, concat, ++, isDefinedAt, lastIndexOf, map, flatMap, filter, take, drop, takeWhile, dropWhile, reverse, contains, slice, subseq, toArray |
| Methods inherited from Collection | |
| toString |
| Methods inherited from Iterable | |
| elements (abstract), foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, projection, hasDefiniteSize |
| Methods inherited from PartialFunction | |
| orElse, andThen |
| Methods inherited from Function1 | |
| apply (abstract), compose |
| Methods inherited from AnyRef | |
| getClass, equals, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
elem - the element to append.elem - the element to append.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.n with the new element
newelem.n - the index of the element to replace.newelem - the new element.n - the index which refers to the element to delete.
def
clear : Unit
|
Scala Library Documentation
|
|