in scala/collection/mutable
class ResizableArray

abstract class ResizableArray[A]()
extends Object
with ScalaObject
with Iterable[A]
Implementing classes or objects:
class ArrayBuffer[A]()
class ByteArray() in scala/collection/mutable/BitSet-class
class PriorityQueue[A](view: (A) => Ordered[A])

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

Field Summary
protected val initialSize: Int

Method Summary
protected var array: Array[A]
protected def copy(m: Int, n: Int, len: Int): Unit
     Move parts of the array.
  def elements: Iterator[A]
     Returns a new iterator over all elements of this resizable array.
protected def ensureSize(n: Int): Unit
     ensure that the internal array has at n cells
  def length: Int
     Returns the length of this resizable array.
protected var size: Int
protected def swap(a: Int, b: Int): Unit
     Swap two elements of this array.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, concat, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/ScalaObject-class
getScalaType

Field Detail

initialSize

  protected val initialSize: Int
Method Detail

array

  protected var array: Array[A]

size

  protected var size: Int

ensureSize

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

swap

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

copy

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

length

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

elements

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