scala.collection.generic

trait CanBuildFrom

[source: scala/collection/generic/CanBuildFrom.scala]

trait CanBuildFrom[-From, -Elem, +To]
extends AnyRef
A base class for builder factories
Since
2.8
Direct Known Subclasses:
MapFactory.MapCanBuildFrom, SortedMapFactory.SortedMapCanBuildFrom, SortedSetFactory.SortedSetCanBuildFrom, TraversableFactory.GenericCanBuildFrom

Method Summary
abstract def apply : Builder[Elem, To]
Creates a new builder from scratch
abstract def apply (from : From) : Builder[Elem, To]
Creates a new builder, using `from` as a prototype the resulting Builder will build the same kind of collection
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
abstract def apply(from : From) : Builder[Elem, To]
Creates a new builder, using `from` as a prototype the resulting Builder will build the same kind of collection

abstract def apply : Builder[Elem, To]
Creates a new builder from scratch