scala.collection.mutable.ArrayBuilder

class ofRef

[source: scala/collection/mutable/ArrayBuilder.scala]

class ofRef[T <: AnyRef](implicit evidence$2 : ClassManifest[T])
extends ArrayBuilder[T]
Method Summary
override def ++= (xs : Traversable[T]) : ofRef[T]
Adds a number of elements provided by an iterable object to this collection.
def += (elem : T) : ofRef[T]
Adds a single element to the builder.
def clear : Unit
Clear the contents of this builder
def result : Array[T]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.
override def sizeHint (size : Int) : Unit
Give a hint how many elements are expected to be added when the next `result` is called.
Methods inherited from Builder
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
override def sizeHint(size : Int) : Unit
Give a hint how many elements are expected to be added when the next `result` is called.

def +=(elem : T) : ofRef[T]
Adds a single element to the builder.
Parameters
elem - The element to be added

override def ++=(xs : Traversable[T]) : ofRef[T]
Adds a number of elements provided by an iterable object to this collection.
Parameters
iter - the iterable object.

def clear : Unit
Clear the contents of this builder

def result : Array[T]
Returns collection resulting from this builder. The buffer's contents are undefined afterwards.