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

Concrete collection type: ListBuffer

Constructors

ListBuffer ( )

Members

private var aliased : Boolean
private var first : List [ A ]
private var last : List [ A ]
private var len : Int
def += ( elem: A ) : ListBuffer [ A ]

Append an element

Append an element

private def aliased_= ( x$1: Boolean ) : Unit
def apply ( i: 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 copyElems ( ) : Unit
private def first_= ( x$1: List [ A ] ) : Unit
def fromIterable ( coll: Iterable [ B ] ) : ListBuffer [ 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.

private def last_= ( x$1: List [ A ] ) : Unit
private def len_= ( x$1: Int ) : Unit
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.

def toList : List [ A ]

Convert to list; avoids copying where possible.

Convert to list; avoids copying where possible.