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.
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.
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.
override def toArray [A <: B] : scala.Array[B]



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.

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.

override def toArray [A <: B]: scala.Array[B]