Object

scala.runtime

ScalaRunTime

Related Doc: package runtime

Permalink

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaRunTime
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def _equals(x: Product, y: Any): Boolean

    Permalink
  5. def _hashCode(x: Product): Int

    Permalink
  6. def _toString(x: Product): String

    Permalink
  7. def anyValClass[T <: AnyVal](value: T)(implicit arg0: ClassTag[T]): Class[T]

    Permalink

    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.

  8. def arrayClass(clazz: Class[_]): Class[_]

    Permalink

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

  9. def arrayElementClass(schematic: Any): Class[_]

    Permalink

    Return the class object representing elements in arrays described by a given schematic.

  10. def array_apply(xs: AnyRef, idx: Int): Any

    Permalink

    Retrieve generic array element

  11. def array_clone(xs: AnyRef): AnyRef

    Permalink
  12. def array_length(xs: AnyRef): Int

    Permalink

    Get generic array length

  13. def array_update(xs: AnyRef, idx: Int, value: Any): Unit

    Permalink

    update generic array element

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def box[T](clazz: Class[T]): Class[_]

    Permalink
  16. def checkInitialized[T <: AnyRef](x: T): T

    Permalink
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def drop[Repr](coll: Repr, num: Int)(implicit traversable: IsTraversableLike[Repr]): Repr

    Permalink
  19. def ensureAccessible(m: Method): Method

    Permalink
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hash(x: Unit): Int

    Permalink
  25. def hash(x: Boolean): Int

    Permalink
  26. def hash(x: Char): Int

    Permalink
  27. def hash(x: Byte): Int

    Permalink
  28. def hash(x: Short): Int

    Permalink
  29. def hash(x: Int): Int

    Permalink
  30. def hash(x: Number): Int

    Permalink
  31. def hash(lv: Long): Int

    Permalink
  32. def hash(fv: Float): Int

    Permalink
  33. def hash(dv: Double): Int

    Permalink
  34. def hash(x: Any): Int

    Permalink
  35. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  36. def inlinedEquals(x: AnyRef, y: AnyRef): Boolean

    Permalink

    Fast path equality method for inlining; used when -optimise is set.

    Fast path equality method for inlining; used when -optimise is set.

    Annotations
    @inline()
  37. def isAnyVal(x: Any): Boolean

    Permalink
  38. def isArray(x: Any, atLevel: Int = 1): Boolean

    Permalink
  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. def isTuple(x: Any): Boolean

    Permalink
  41. def isValueClass(clazz: Class[_]): Boolean

    Permalink
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. def replStringOf(arg: Any, maxElements: Int): String

    Permalink

    stringOf formatted for use in a repl result.

  46. def sameElements(xs1: collection.Seq[Any], xs2: collection.Seq[Any]): Boolean

    Permalink

    A helper method for constructing case class equality methods, because existential types get in the way of a clean outcome and it's performing a series of Any/Any equals comparisons anyway.

    A helper method for constructing case class equality methods, because existential types get in the way of a clean outcome and it's performing a series of Any/Any equals comparisons anyway. See ticket #2867 for specifics.

  47. def stringOf(arg: Any, maxElements: Int): String

    Permalink
  48. def stringOf(arg: Any): String

    Permalink

    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.

    arg

    the value to stringify

    returns

    a string representation of arg.

  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toArray[T](xs: collection.Seq[T]): Array[AnyRef]

    Permalink
  51. def toObjectArray(src: AnyRef): Array[AnyRef]

    Permalink

    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 ...

  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def typedProductIterator[T](x: Product): Iterator[T]

    Permalink

    A helper for case classes.

  54. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped