ScalaRunTime

scala.runtime.ScalaRunTime$
object ScalaRunTime

The object ScalaRunTime provides support methods required by the scala runtime. All these methods should be considered outside the API and subject to change or removal without notice.

Attributes

Source
ScalaRunTime.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def _hashCode(x: Product): Int

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala
def anyValClass[T <: AnyVal : ClassTag](value: T): Class[T]

Return the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer].

Return the class object representing an unboxed value type, e.g., classOf[int], not classOf[java.lang.Integer]. The compiler rewrites expressions like 5.getClass to come here.

Attributes

Source
ScalaRunTime.scala
def arrayClass(clazz: Class[_]): Class[_]

Return the class object representing an array with element class clazz.

Return the class object representing an array with element class clazz.

Attributes

Source
ScalaRunTime.scala
def array_apply(xs: AnyRef, idx: Int): Any

Retrieve generic array element

Retrieve generic array element

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala
def array_length(xs: AnyRef): Int

Get generic array length

Get generic array length

Attributes

Source
ScalaRunTime.scala
def array_update(xs: AnyRef, idx: Int, value: Any): Unit

update generic array element

update generic array element

Attributes

Source
ScalaRunTime.scala
def drop[Repr](coll: Repr, num: Int)(implicit iterable: IsIterable[Repr] { type C <: Repr; }): Repr

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala
def genericWrapArray[T](xs: Array[T]): ArraySeq[T]

Attributes

Source
ScalaRunTime.scala
def isArray(x: Any, atLevel: Int): Boolean

Attributes

Source
ScalaRunTime.scala
def replStringOf(arg: Any, maxElements: Int): String

stringOf formatted for use in a repl result.

stringOf formatted for use in a repl result.

Attributes

Source
ScalaRunTime.scala
def stringOf(arg: Any): String

Given any Scala value, convert it to a String.

Given any Scala value, convert it to a String.

The primary motivation for this method is to provide a means for correctly obtaining a String representation of a value, while avoiding the pitfalls of naively calling toString on said value. In particular, it addresses the fact that (a) toString cannot be called on null and (b) depending on the apparent type of an array, toString may or may not print it in a human-readable form.

Value parameters

arg

the value to stringify

Attributes

Returns

a string representation of arg.

Source
ScalaRunTime.scala
def stringOf(arg: Any, maxElements: Int): String

Attributes

Source
ScalaRunTime.scala
def toArray[T](xs: Seq[T]): Array[AnyRef]

Attributes

Source
ScalaRunTime.scala

Convert an array to an object array.

Convert an array to an object array. Needed to deal with vararg arguments of primitive types that are passed to a generic Java vararg parameter T ...

Attributes

Source
ScalaRunTime.scala

A helper for case classes.

A helper for case classes.

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala
def wrapRefArray[T <: AnyRef](xs: Array[T]): ArraySeq[T]

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala

Attributes

Source
ScalaRunTime.scala