class ArrayBuffer [ A ]
extends Seq with SeqLike with Buildable with Builder

Concrete collection type: ArrayBuffer

Constructors

ArrayBuffer ( initElems: Array [ AnyRef ] , initLength: Int )
ArrayBuffer ( )

Members

private var elems : Array [ AnyRef ]
private var end : Int
private val initElems : Array [ AnyRef ]
private val initLength : Int
private var start : Int
override def ++ ( xs: IterableOnce [ B ] ) : ArrayBuffer [ B ]

Overridden to use array copying for efficiency where possible.

Overridden to use array copying for efficiency where possible.

def += ( elem: A ) : ArrayBuffer [ A ]

Append an element

Append an element

def apply ( n: Int ) : A
override def className : String

The class name of this collection. To be used for converting to string. Collections generally print like this:

 <className>(elem_1, ..., elem_n)

The class name of this collection. To be used for converting to string. Collections generally print like this:

 <className>(elem_1, ..., elem_n)
private def elems_= ( x$1: Array [ AnyRef ] ) : Unit
private def end_= ( x$1: Int ) : Unit
def fromIterable ( it: Iterable [ B ] ) : ArrayBuffer [ B ]
def iterator : Iterator [ A ]
override def knownSize : Int

The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

def length : Int
protected def newBuilder : Builder [ A, Repr ]

Creates a new builder.

Creates a new builder.

def result : To

Result collection consisting of all elements appended so far.

Result collection consisting of all elements appended so far.

private def start_= ( x$1: Int ) : Unit
override def take ( n: Int ) : Repr

A collection containing the first n elements of this collection.

A collection containing the first n elements of this collection.

def trimStart ( n: Int ) : Unit

New operation: destructively drop elements at start of buffer.

New operation: destructively drop elements at start of buffer.

override def view : View [ A ]

A view representing the elements of this collection.

A view representing the elements of this collection.