Packages

t

scala.collection

SpecificIterableFactory

trait SpecificIterableFactory[-A, +C] extends Factory[A, C]

A

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

C

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

Source
Factory.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpecificIterableFactory
  2. Factory
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def empty: C
  2. abstract def fromSpecific(it: IterableOnce[A]): C

    it

    Source collection

    returns

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

    Definition Classes
    Factory
  3. abstract 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.

    Definition Classes
    SpecificIterableFactoryFactory

Concrete Value Members

  1. def apply(xs: A*): C
  2. def fill(n: Int)(elem: => A): C
  3. implicit def specificIterableFactory: Factory[A, C]