官术网_书友最值得收藏!

IterableFactory

trait IterableFactory[+CC[_]] is a base trait for companion objects for specific collections which provides a number of operations to create a specific collection with the type specified by the CC type constructor; this is sometimes called target-type driven building because the type of the source collection is ignored. Most of the companion objects in the collection library extend this trait, which makes it possible to use them in places where IterableFactory is expected. 

As this is the main abstraction that allows to build a collection from scratch, it is useful to know which methods it supplies. All of them return CC[A]. The following table contains a short summary:

Arguably, IterableFactory provides a lot of different possibilities to create a collection of a desired type.

主站蜘蛛池模板: 安图县| 宜宾县| 凤庆县| 永泰县| 嘉兴市| 罗城| 罗平县| 临清市| 西贡区| 大悟县| 松桃| 鹤山市| 桃园县| 禹城市| 家居| 广安市| 和静县| 枣强县| 民和| 鹤庆县| 赞皇县| 荔波县| 灵武市| 馆陶县| 藁城市| 扎赉特旗| 全南县| 宜丰县| 永定县| 云南省| 易门县| 改则县| 阳城县| 霍山县| 夹江县| 新泰市| 蚌埠市| 大洼县| 迭部县| 外汇| 香格里拉县|