On this page
Class scala.reflect.AnyValManifest
@nowarn("cat=deprecation&origin=scala\\.reflect\\.ClassManifest(DeprecatedApis.*)?") @SerialVersionUID(1L)
Supertypes |
---|
Concrete methods
Source
Definition Classes | ClassManifestDeprecatedApis |
---|
Source
Definition Classes | Manifest -> ClassTag -> Equals -> ClassManifestDeprecatedApis |
---|
Source
Inherited methods
Source
Inherited from | ClassManifestDeprecatedApis |
---|
Source
Inherited from | ClassManifestDeprecatedApis |
---|
Source
Definition Classes | Manifest -> ClassManifestDeprecatedApis |
---|---|
Inherited from | Manifest |
Source
Produces a new array with element type T
and length len
Inherited from | ClassTag |
---|
Source
def runtimeClass: Class[_]
A class representing the type U
to which T
would be erased. Note that there is no subtyping relationship between T
and U
.
Inherited from | ClassTag |
---|
Source
Definition Classes | Manifest -> ClassManifestDeprecatedApis |
---|---|
Inherited from | Manifest |
Source
A ClassTag[T] can serve as an extractor that matches only objects of type T.
The compiler tries to turn unchecked type tests in pattern matches into checked ones by wrapping a (_: T)
type pattern as ct(_: T)
, where ct
is the ClassTag[T]
instance. Type tests necessary before calling other extractors are treated similarly. SomeExtractor(...)
is turned into ct(SomeExtractor(...))
if T
in SomeExtractor.unapply(x: T)
is uncheckable, but we have an instance of ClassTag[T]
.
Inherited from | ClassTag |
---|
Source
Produces a ClassTag
that knows how to instantiate an Array[Array[T]]
Inherited from | ClassTag |
---|
Concrete fields
Source@transient
Source
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/reflect/AnyValManifest.html