blob: 88f0b25929a36bb435a03d7be9a210445b0a4ae2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2010-2011, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala.collection
package generic
import mutable.Builder
import annotation.unchecked.uncheckedVariance
import language.higherKinds
import reflect.ArrayTag
/** This trait represents collections classes which require array
* tags for their element types.
*
* @author Aleksandar Prokopec
* @since 2.8
*/
trait GenericArrayTagTraversableTemplate[+A, +CC[X] <: Traversable[X]] extends HasNewBuilder[A, CC[A] @uncheckedVariance] {
implicit protected[this] val tag: ArrayTag[A]
def arrayTagCompanion: GenericArrayTagCompanion[CC]
def genericArrayTagBuilder[B](implicit tag: ArrayTag[B]): Builder[B, CC[B]] = arrayTagCompanion.newBuilder[B]
@deprecated("use arrayTagCompanion instead", "2.10.0")
def classManifestCompanion: GenericClassManifestCompanion[CC] = arrayTagCompanion
@deprecated("use genericArrayTagBuilder instead", "2.10.0")
def genericClassManifestBuilder[B](implicit manifest: ClassManifest[B]): Builder[B, CC[B]] = genericArrayTagBuilder[B](manifest)
}
|