specialized

scala.specialized
final class specialized(group: SpecializedGroup) extends StaticAnnotation

Annotate type parameters on which code should be automatically specialized. For example:

  class MyList[@specialized T] ...

Type T can be specialized on a subset of the primitive types by specifying a list of primitive types to specialize at:

  class MyList[@specialized(Int, Double, Boolean) T] ..

Value parameters

group

the group of primitive types for which specialization should be performed (typically constructed implicitly via the varargs constructor)

Attributes

Source
specialized.scala
Graph
Supertypes
class Annotation
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(types: Specializable*)

Attributes

Source
specialized.scala
def this()

Attributes

Source
specialized.scala