SpecificIterableFactory

scala.collection.SpecificIterableFactory
trait SpecificIterableFactory[-A, +C] extends Factory[A, C]

Type parameters

A

Type of elements (e.g. Int, Boolean, etc.)

C

Type of collection (e.g. List[Int], TreeMap[Int, String], etc.)

Attributes

Source
Factory.scala
Graph
Supertypes
trait Factory[A, C]
class Object
trait Matchable
class Any
Known subtypes
object BitSet
object WrappedString
object BitSet
object BitSet
object ValueSet
Show all

Members list

Value members

Abstract methods

def empty: C

Attributes

Source
Factory.scala
def newBuilder: Builder[A, C]

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.

Attributes

Source
Factory.scala

Concrete methods

def apply(xs: A*): C

Attributes

Source
Factory.scala
def fill(n: Int)(elem: => A): C

Attributes

Source
Factory.scala

Inherited methods

def fromSpecific(it: IterableOnce[A]): C

Value parameters

it

Source collection

Attributes

Returns

A collection of type C containing the same elements as the source collection it.

Inherited from:
Factory
Source
Factory.scala

Implicits

Implicits

implicit def specificIterableFactory: Factory[A, C]

Attributes

Source
Factory.scala