scala.collection.immutable

class VectorBuilder

[source: scala/collection/immutable/VectorBuilder.scala]

final class VectorBuilder[A]
extends Builder[A, Vector[A]] with scala.collection.immutable.VectorPointer[A]
Values and Variables inherited from scala.collection.immutable.VectorPointer
scala.collection.immutable.VectorPointer.depth, scala.collection.immutable.VectorPointer.display0, scala.collection.immutable.VectorPointer.display1, scala.collection.immutable.VectorPointer.display2, scala.collection.immutable.VectorPointer.display3, scala.collection.immutable.VectorPointer.display4, scala.collection.immutable.VectorPointer.display5
Method Summary
def += (elem : A) : VectorBuilder[A]
Adds a single element to the builder.
def clear : Unit
Clear the contents of this builder
def result : Vector[A]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.
Methods inherited from scala.collection.immutable.VectorPointer
scala.collection.immutable.VectorPointer.initFrom, scala.collection.immutable.VectorPointer.initFrom, scala.collection.immutable.VectorPointer.getElem, scala.collection.immutable.VectorPointer.gotoPos, scala.collection.immutable.VectorPointer.gotoNextBlockStart, scala.collection.immutable.VectorPointer.gotoNextBlockStartWritable, scala.collection.immutable.VectorPointer.copyOf, scala.collection.immutable.VectorPointer.nullSlotAndCopy, scala.collection.immutable.VectorPointer.stabilize, scala.collection.immutable.VectorPointer.gotoPosWritable0, scala.collection.immutable.VectorPointer.gotoPosWritable1, scala.collection.immutable.VectorPointer.copyRange, scala.collection.immutable.VectorPointer.gotoFreshPosWritable0, scala.collection.immutable.VectorPointer.gotoFreshPosWritable1, scala.collection.immutable.VectorPointer.debug
Methods inherited from Builder
sizeHint, mapResult
Methods inherited from Growable
+=, ++=, ++=
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def +=(elem : A) : VectorBuilder[A]
Adds a single element to the builder.
Parameters
elem - The element to be added
Overrides
Builder.+=

def result : Vector[A]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.
Overrides
Builder.result

def clear : Unit
Clear the contents of this builder
Overrides
Builder.clear