Trait/Object

scala.collection.compat

BuildFrom

Related Docs: object BuildFrom | package compat

Permalink

trait BuildFrom[-From, -A, +C] extends Any

Builds a collection of type C from elements of type A when a source collection of type From is available. Implicit instances of BuildFrom are available for all collection types.

From

Type of source collection

A

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

C

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

Linear Supertypes
Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BuildFrom
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fromSpecific(from: From)(it: compat.IterableOnce[A]): C

    Permalink
  2. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any
  3. abstract def newBuilder(from: From): Builder[A, C]

    Permalink

    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.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def toString(): String

    Permalink
    Definition Classes
    Any

Deprecated Value Members

  1. def apply(from: From): Builder[A, C]

    Permalink
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use newBuilder() instead of apply()

Inherited from Any

Ungrouped