|
Scala Library
|
|
scala/swing/RefBuffer.scala]
abstract
class
RefBuffer[A <: AnyRef]
extends Buffer[A] with scala.swing.SingleRefCollection[A]| Value Summary | |
protected abstract val
|
underlying : Buffer[Reference[A]] |
| Values and Variables inherited from scala.swing.SingleRefCollection | |
| scala.swing.SingleRefCollection.referenceQueue |
| Method Summary | |
def
|
+:
(el : A) : RefBuffer[A]
Prepend a single element to this buffer and return
the identity of the buffer.
|
def
|
+=
(el : A) : Unit
Append a single element to this buffer.
|
def
|
apply (n : Int) : A |
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
|
length
: Int
Returns the length of the sequence.
|
def
|
readOnly
: Seq[A]
return a read only alias of this buffer
|
def
|
remove (el : A) : Unit |
def
|
remove
(n : Int) : A
Removes the element on a given index position.
|
protected[this] def
|
removeReference (ref : Reference[A]) : Unit |
def
|
update
(n : Int, el : A) : Unit
Replace element at index
n with the new element
newelem. |
| Methods inherited from scala.swing.SingleRefCollection | |
| scala.swing.SingleRefCollection.Ref (abstract), scala.swing.SingleRefCollection.purgeReferences, scala.swing.SingleRefCollection.elements |
| Methods inherited from Buffer | |
| +, ++=, ++=, ++=, ++, ++, ++, ++:, -=, append, appendAll, prepend, prependAll, insert, trimStart, trimEnd, <<, clone, hashCode, stringPrefix |
| Methods inherited from Seq | |
| lengthCompare, size, isEmpty, concat, last, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, take, drop, slice, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, toSeq, projection, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
| Methods inherited from Collection | |
| toString |
| Methods inherited from Iterable | |
| partition, foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, hasDefiniteSize |
| Methods inherited from PartialFunction | |
| orElse, andThen |
| Methods inherited from Function1 | |
| compose |
| Methods inherited from AnyRef | |
| getClass, equals, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Value Details |
| Method Details |
elem - the element to append.elem - the element to append.n - the index which refers to the element to delete.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.
def
length : Int
def
clear : Unit
|
Scala Library
|
|