in scala.collection.mutable
trait ResizableArray

abstract trait ResizableArray [A]
extends java.lang.Object
with scala.Seq[A]
with scala.ScalaObject
This class is used internally to implement data structures that are based on resizable arrays. //todo enrich with more efficient operations
Author:
Matthias Zenger, Burak Emir
Version:
1.0, 03/05/2004
Direct Known Subclasses:
PriorityQueue, ArrayBuffer

Val Summary
protected val initialSize : scala.Int

Var Summary
protected var array : scala.Array[A]

protected var size : scala.Int

Def Summary
def apply (i: scala.Int) : A

protected def copy (m: scala.Int, n: scala.Int, len: scala.Int) : scala.Unit
Move parts of the array.
override def copyToArray [B >: A] (xs: scala.Array[B], start: scala.Int) : scala.Unit
Fills the given array xs with the elements of this sequence starting at position start.
override def copyToBuffer [B >: A] (dest: scala.collection.mutable.Buffer[B]) : scala.Unit
Copy all elements to a buffer
def elements : scala.Iterator[A]
Returns a new iterator over all elements of this resizable array.
protected def ensureSize (n: scala.Int) : scala.Unit
ensure that the internal array has at n cells
def length : scala.Int
Returns the length of this resizable array.
protected def swap (a: scala.Int, b: scala.Int) : scala.Unit
Swap two elements of this array.
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
Val Detail
protected val initialSize : scala.Int

Var Detail
protected var array : scala.Array[A]

protected var size : scala.Int

Def Detail
def apply (i: scala.Int): A

protected def copy (m: scala.Int, n: scala.Int, len: scala.Int): scala.Unit
Move parts of the array.

override def copyToArray [B >: A](xs: scala.Array[B], start: scala.Int): scala.Unit
Fills the given array xs with the elements of this sequence starting at position start.
Parameters:
xs - the array to fill.
Parameters:
start - starting index.

override def copyToBuffer [B >: A](dest: scala.collection.mutable.Buffer[B]): scala.Unit
Copy all elements to a buffer
Parameters:
The - buffer to which elements are copied

def elements : scala.Iterator[A]
Returns a new iterator over all elements of this resizable array.

protected def ensureSize (n: scala.Int): scala.Unit
ensure that the internal array has at n cells

def length : scala.Int
Returns the length of this resizable array.

protected def swap (a: scala.Int, b: scala.Int): scala.Unit
Swap two elements of this array.