A factory that builds a collection of type C with elements of type A.
This is a general form of any factory (IterableFactory, SortedIterableFactory, MapFactory and SortedMapFactory) whose element type is fixed.
- Type parameters:
- A
Type of elements (e.g.
Int,Boolean, etc.)- C
Type of collection (e.g.
List[Int],TreeMap[Int, String], etc.)
- Companion:
- object
- Source:
- Factory.scala
class Any
object ValueSet
object BitSet
object BitSet
object WrappedString
object BitSet
object DoubleAccumulator
object IntAccumulator
object LongAccumulator
Value members
Abstract methods
- Value parameters:
- it
Source collection
- Returns:
A collection of type
Ccontaining the same elements as the source collectionit.- Source:
- Factory.scala
Get a Builder for the collection.
Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer.
Building collections with fromSpecific is preferred because it can be lazy for lazy collections.
- Source:
- Factory.scala