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
Ordering
- Alphabetic
- By Inheritance
Inherited
- BuildFrom
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def fromSpecificIterable(from: From)(it: Iterable[A]): C
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
newBuilder(from: From): 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
fromSpecificIterable
is preferred because it can be lazy for lazy collections.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
Deprecated Value Members
-
def
apply(from: From): Builder[A, C]
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use newBuilder instead of apply()