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

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.

主站蜘蛛池模板: 获嘉县| 延长县| 永修县| 富民县| 金沙县| 岳普湖县| 包头市| 响水县| 武强县| 青铜峡市| 怀宁县| 茂名市| 安仁县| 竹山县| 临潭县| 海伦市| 马山县| 安图县| 罗甸县| 和政县| 台江县| 邯郸县| 富锦市| 辛集市| 商丘市| 云安县| 额济纳旗| 延川县| 休宁县| 高雄市| 凌云县| 石景山区| 连江县| 龙江县| 房产| 郴州市| 西华县| 甘谷县| 横峰县| 慈利县| 宜春市|