scala / 3.1 / scala / reflect / anyvalmanifest.html

Class scala.reflect.AnyValManifest

@nowarn("cat=deprecation&origin=scala\\.reflect\\.ClassManifest(DeprecatedApis.*)?") @SerialVersionUID(1L)
abstract class AnyValManifest[T <: AnyVal](val toString: String) extends Manifest[T] with Equals

Supertypes

Concrete methods

Source
override def <:<(that: ClassTag[_]): Boolean

Definition Classes ClassManifestDeprecatedApis

Source
override def canEqual(other: Any): Boolean

Definition Classes Manifest -> ClassTag -> Equals -> ClassManifestDeprecatedApis

Source
override def equals(that: Any): Boolean

Definition Classes Manifest -> ClassTag -> Equals -> Any

Inherited methods

Source
protected def argString: String

Source
protected def arrayClass[A](tp: Class[_]): Class[Array[A]]

Source
override def arrayManifest: Manifest[Array[T]]

Definition Classes Manifest -> ClassManifestDeprecatedApis
Inherited from Manifest

Source
def newArray(len: Int): Array[T]

Produces a new array with element type T and length len

Inherited from ClassTag

Source

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
override def typeArguments: List[Manifest[_]]

Definition Classes Manifest -> ClassManifestDeprecatedApis
Inherited from Manifest

Source
def unapply(x: Any): Option[T]

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
def wrap: ClassTag[Array[T]]

Produces a ClassTag that knows how to instantiate an Array[Array[T]]

Inherited from ClassTag

Concrete fields

Source@transient
override val hashCode: Int

Source
override val toString: String

© 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