scala

Predef

object Predef extends LowPriorityImplicits

The Predef object provides definitions that are accessible in all Scala compilation units without explicit qualification.

linear super types: LowPriorityImplicits, AnyRef, Any
source: Predef.scala
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Predef
  2. LowPriorityImplicits
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class <%< [-From, +To] extends (From) ⇒ To

    attributes: sealed abstract
  2. class <:< [-From, +To] extends (From) ⇒ To

    attributes: sealed abstract
  3. class =:= [From, To] extends (From) ⇒ To

    attributes: sealed abstract
  4. class ArrowAssoc [A] extends AnyRef

    attributes: final
  5. type Class [T] = Class[T]

  6. type ClassManifest [T] = ClassManifest[T]

  7. class DummyImplicit extends AnyRef

    A type for which there is always an implicit value.

  8. class Ensuring [A] extends AnyRef

    attributes: final
  9. type Function [-A, +B] = (A) ⇒ B

  10. type Manifest [T] = Manifest[T]

  11. type Map [A, +B] = Map[A, B]

  12. type Pair [+A, +B] = (A, B)

  13. type Set [A] = Set[A]

  14. type String = String

  15. type Triple [+A, +B, +C] = (A, B, C)

Value Members

  1. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. object <%< extends AnyRef

  7. object =:= extends AnyRef

  8. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  9. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  10. object DummyImplicit extends AnyRef

  11. val Map : collection.immutable.Map.type

  12. object Pair extends AnyRef

  13. val Set : collection.immutable.Set.type

  14. object Triple extends AnyRef

  15. implicit def any2ArrowAssoc [A] (x: A) : ArrowAssoc[A]

    attributes: implicit
  16. implicit def any2Ensuring [A] (x: A) : Ensuring[A]

    attributes: implicit
  17. implicit def any2stringadd (x: Any) : StringAdd

    attributes: implicit
  18. implicit def arrayToCharSequence (xs: Array[Char]) : CharSequence

    attributes: implicit
  19. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  20. def assert (assertion: Boolean, message: ⇒ Any) : Unit

    Tests an expression, throwing an AssertionError if false.

    Tests an expression, throwing an AssertionError if false. Calls to this method will not be generated if -Xelide-below is at least ASSERTION.

      see also:
    1. elidable

  21. def assert (assertion: Boolean) : Unit

    Tests an expression, throwing an AssertionError if false.

    Tests an expression, throwing an AssertionError if false. Calls to this method will not be generated if -Xelide-below is at least ASSERTION.

      see also:
    1. elidable

  22. def assume (assumption: Boolean, message: ⇒ Any) : Unit

    Tests an expression, throwing an AssertionError if false.

    Tests an expression, throwing an AssertionError if false. This method differs from assert only in the intent expressed: assert contains a predicate which needs to be proven, while assume contains an axiom for a static checker. Calls to this method will not be generated if -Xelide-below is at least ASSERTION.

      see also:
    1. elidable

  23. def assume (assumption: Boolean) : Unit

    Tests an expression, throwing an AssertionError if false.

    Tests an expression, throwing an AssertionError if false. This method differs from assert only in the intent expressed: assert contains a predicate which needs to be proven, while assume contains an axiom for a static checker. Calls to this method will not be generated if -Xelide-below is at least ASSERTION.

      see also:
    1. elidable

  24. implicit def augmentString (x: String) : StringOps

    attributes: implicit
  25. implicit def boolean2Boolean (x: Boolean) : Boolean

    attributes: implicit
  26. implicit def booleanArrayOps (xs: Array[Boolean]) : ArrayOps[Boolean]

    attributes: implicit
  27. implicit def booleanWrapper (x: Boolean) : RichBoolean

    attributes: implicit
  28. implicit def byte2Byte (x: Byte) : Byte

    attributes: implicit
  29. implicit def byte2double (x: Byte) : Double

    attributes: implicit
  30. implicit def byte2float (x: Byte) : Float

    attributes: implicit
  31. implicit def byte2int (x: Byte) : Int

    attributes: implicit
  32. implicit def byte2long (x: Byte) : Long

    attributes: implicit
  33. implicit def byte2short (x: Byte) : Short

    attributes: implicit
  34. implicit def byteArrayOps (xs: Array[Byte]) : ArrayOps[Byte]

    attributes: implicit
  35. implicit def byteWrapper (x: Byte) : RichByte

    attributes: implicit
  36. implicit def char2Character (x: Char) : Character

    attributes: implicit
  37. implicit def char2double (x: Char) : Double

    attributes: implicit
  38. implicit def char2float (x: Char) : Float

    attributes: implicit
  39. implicit def char2int (x: Char) : Int

    attributes: implicit
  40. implicit def char2long (x: Char) : Long

    attributes: implicit
  41. implicit def charArrayOps (xs: Array[Char]) : ArrayOps[Char]

    attributes: implicit
  42. implicit def charWrapper (c: Char) : RichChar

    attributes: implicit
  43. def classManifest [T] (implicit m: ClassManifest[T]) : ClassManifest[T]

  44. def classOf [T] : Class[T]

    Return the runtime representation of a class type.

    Return the runtime representation of a class type. This is a stub method. The actual implementation is filled in by the compiler.

  45. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected[lang]
    definition classes: AnyRef
  46. implicit def conforms [A] : <:<[A, A]

    attributes: implicit
  47. def currentThread : Thread

  48. implicit def double2Double (x: Double) : Double

    attributes: implicit
  49. implicit def doubleArrayOps (xs: Array[Double]) : ArrayOps[Double]

    attributes: implicit
  50. implicit def doubleWrapper (x: Double) : RichDouble

    attributes: implicit
  51. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  52. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  53. def error (message: String) : Nothing

  54. implicit def exceptionWrapper (exc: Throwable) : RichException

    attributes: implicit
  55. def exit (status: Int) : Nothing

  56. def exit () : Nothing

  57. implicit def fallbackStringCanBuildFrom [T] : CanBuildFrom[String, T, IndexedSeq[T]]

    attributes: implicit
    definition classes: LowPriorityImplicits
  58. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected[lang]
    definition classes: AnyRef
  59. implicit def float2Float (x: Float) : Float

    attributes: implicit
  60. implicit def float2double (x: Float) : Double

    attributes: implicit
  61. implicit def floatArrayOps (xs: Array[Float]) : ArrayOps[Float]

    attributes: implicit
  62. implicit def floatWrapper (x: Float) : RichFloat

    attributes: implicit
  63. def format (text: String, xs: Any*) : String

  64. implicit def genericArrayOps [T] (xs: Array[T]) : ArrayOps[T]

    attributes: implicit
  65. implicit def genericWrapArray [T] (xs: Array[T]) : WrappedArray[T]

    attributes: implicit
    definition classes: LowPriorityImplicits
  66. def getClass () : java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  67. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  68. def identity [A] (x: A) : A

  69. def implicitly [T] (implicit e: T) : T

  70. implicit def int2Integer (x: Int) : Integer

    attributes: implicit
  71. implicit def int2double (x: Int) : Double

    attributes: implicit
  72. implicit def int2float (x: Int) : Float

    attributes: implicit
  73. implicit def int2long (x: Int) : Long

    attributes: implicit
  74. implicit def intArrayOps (xs: Array[Int]) : ArrayOps[Int]

    attributes: implicit
  75. implicit def intWrapper (x: Int) : RichInt

    attributes: implicit
  76. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  77. def locally [T] (x: T) : T

  78. implicit def long2Long (x: Long) : Long

    attributes: implicit
  79. implicit def long2double (x: Long) : Double

    attributes: implicit
  80. implicit def long2float (x: Long) : Float

    attributes: implicit
  81. implicit def longArrayOps (xs: Array[Long]) : ArrayOps[Long]

    attributes: implicit
  82. implicit def longWrapper (x: Long) : RichLong

    attributes: implicit
  83. def manifest [T] (implicit m: Manifest[T]) : Manifest[T]

  84. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  85. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  86. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  87. def print (x: Any) : Unit

  88. def printf (text: String, xs: Any*) : Unit

  89. def println (x: Any) : Unit

  90. def println () : Unit

  91. def readBoolean () : Boolean

  92. def readByte () : Byte

  93. def readChar () : Char

  94. def readDouble () : Double

  95. def readFloat () : Float

  96. def readInt () : Int

  97. def readLine (text: String, args: Any*) : String

  98. def readLine () : String

  99. def readLong () : Long

  100. def readShort () : Short

  101. def readf (format: String) : List[Any]

  102. def readf1 (format: String) : Any

  103. def readf2 (format: String) : (Any, Any)

  104. def readf3 (format: String) : (Any, Any, Any)

  105. implicit def refArrayOps [T <: AnyRef] (xs: Array[T]) : ArrayOps[T]

    attributes: implicit
  106. def require (requirement: Boolean, message: ⇒ Any) : Unit

    Tests an expression, throwing an IllegalArgumentException if false.

    Tests an expression, throwing an IllegalArgumentException if false. This method is similar to assert, but blames the caller of the method for violating the condition.

  107. def require (requirement: Boolean) : Unit

    Tests an expression, throwing an IllegalArgumentException if false.

    Tests an expression, throwing an IllegalArgumentException if false. This method is similar to assert, but blames the caller of the method for violating the condition.

  108. implicit def seqToCharSequence (xs: IndexedSeq[Char]) : CharSequence

    attributes: implicit
  109. implicit def short2Short (x: Short) : Short

    attributes: implicit
  110. implicit def short2double (x: Short) : Double

    attributes: implicit
  111. implicit def short2float (x: Short) : Float

    attributes: implicit
  112. implicit def short2int (x: Short) : Int

    attributes: implicit
  113. implicit def short2long (x: Short) : Long

    attributes: implicit
  114. implicit def shortArrayOps (xs: Array[Short]) : ArrayOps[Short]

    attributes: implicit
  115. implicit def shortWrapper (x: Short) : RichShort

    attributes: implicit
  116. implicit def stringCanBuildFrom : CanBuildFrom[String, Char, String]

    attributes: implicit
  117. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  118. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  119. implicit def unaugmentString (x: StringOps) : String

    attributes: implicit
  120. implicit def unitArrayOps (xs: Array[Unit]) : ArrayOps[Unit]

    attributes: implicit
  121. implicit def unwrapString (ws: WrappedString) : String

    attributes: implicit
    definition classes: LowPriorityImplicits
  122. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  123. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  124. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  125. def wrapArray (xs: Array[Unit]) : WrappedArray[Unit]

    definition classes: LowPriorityImplicits
  126. def wrapArray (xs: Array[Boolean]) : WrappedArray[Boolean]

    definition classes: LowPriorityImplicits
  127. def wrapArray (xs: Array[Short]) : WrappedArray[Short]

    definition classes: LowPriorityImplicits
  128. def wrapArray (xs: Array[Byte]) : WrappedArray[Byte]

    definition classes: LowPriorityImplicits
  129. def wrapArray (xs: Array[Char]) : WrappedArray[Char]

    definition classes: LowPriorityImplicits
  130. def wrapArray (xs: Array[Float]) : WrappedArray[Float]

    definition classes: LowPriorityImplicits
  131. def wrapArray (xs: Array[Long]) : WrappedArray[Long]

    definition classes: LowPriorityImplicits
  132. def wrapArray (xs: Array[Double]) : WrappedArray[Double]

    definition classes: LowPriorityImplicits
  133. def wrapArray (xs: Array[Int]) : WrappedArray[Int]

    definition classes: LowPriorityImplicits
  134. def wrapArray [T <: AnyRef] (xs: Array[T]) : WrappedArray[T]

    Caution - not yet.

    Caution - not yet. pos/t1459, pos/t2569, jvm/t1342 all fail without the next line.

    definition classes: LowPriorityImplicits
  135. implicit def wrapBooleanArray (xs: Array[Boolean]) : WrappedArray[Boolean]

    attributes: implicit
    definition classes: LowPriorityImplicits
  136. implicit def wrapByteArray (xs: Array[Byte]) : WrappedArray[Byte]

    attributes: implicit
    definition classes: LowPriorityImplicits
  137. implicit def wrapCharArray (xs: Array[Char]) : WrappedArray[Char]

    attributes: implicit
    definition classes: LowPriorityImplicits
  138. implicit def wrapDoubleArray (xs: Array[Double]) : WrappedArray[Double]

    attributes: implicit
    definition classes: LowPriorityImplicits
  139. implicit def wrapFloatArray (xs: Array[Float]) : WrappedArray[Float]

    attributes: implicit
    definition classes: LowPriorityImplicits
  140. implicit def wrapIntArray (xs: Array[Int]) : WrappedArray[Int]

    attributes: implicit
    definition classes: LowPriorityImplicits
  141. implicit def wrapLongArray (xs: Array[Long]) : WrappedArray[Long]

    attributes: implicit
    definition classes: LowPriorityImplicits
  142. implicit def wrapRefArray [T <: AnyRef] (xs: Array[T]) : WrappedArray[T]

    attributes: implicit
    definition classes: LowPriorityImplicits
  143. implicit def wrapShortArray (xs: Array[Short]) : WrappedArray[Short]

    attributes: implicit
    definition classes: LowPriorityImplicits
  144. implicit def wrapString (s: String) : WrappedString

    attributes: implicit
    definition classes: LowPriorityImplicits
  145. implicit def wrapUnitArray (xs: Array[Unit]) : WrappedArray[Unit]

    attributes: implicit
    definition classes: LowPriorityImplicits

Inherited from LowPriorityImplicits

Inherited from AnyRef

Inherited from Any