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
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
initialSize
protected val initialSize: Int
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.