scala

object Predef

[source: scala/Predef.scala]

object Predef
extends LowPriorityImplicits
The Predef object provides definitions that are accessible in all Scala compilation units without explicit qualification.
Type Summary
type Class
type ClassManifest
type Function
type Manifest
type Map
type Pair
type Set
type String
type Triple
type boolean
type byte
type char
type double
type float
type int
type long
type short
type unit
Value Summary
val Map : Map
val Set : Set
Method Summary
def Tuple [A1, A2, A3, A4, A5, A6, A7, A8, A9](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7, x8 : A8, x9 : A9) : (A1, A2, A3, A4, A5, A6, A7, A8, A9)
def Tuple [A1](x1 : A1) : (A1)
def Tuple [A1, A2, A3, A4, A5, A6](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6) : (A1, A2, A3, A4, A5, A6)
def Tuple [A1, A2, A3, A4, A5, A6, A7, A8](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7, x8 : A8) : (A1, A2, A3, A4, A5, A6, A7, A8)
def Tuple [A1, A2, A3, A4](x1 : A1, x2 : A2, x3 : A3, x4 : A4) : (A1, A2, A3, A4)
def Tuple [A1, A2, A3](x1 : A1, x2 : A2, x3 : A3) : (A1, A2, A3)
def Tuple [A1, A2, A3, A4, A5](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5) : (A1, A2, A3, A4, A5)
def Tuple [A1, A2](x1 : A1, x2 : A2) : (A1, A2)
def Tuple [A1, A2, A3, A4, A5, A6, A7](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7) : (A1, A2, A3, A4, A5, A6, A7)
implicit def any2ArrowAssoc [A](x : A) : ArrowAssoc[A]
implicit def any2Ensuring [A](x : A) : Ensuring[A]
implicit def any2stringadd (x : Any) : scala.runtime.StringAdd
implicit def arrayToCharSequence (xs : Array[Char]) : java.lang.CharSequence
def assert (assertion : Boolean) : Unit
def assert (assertion : Boolean, message : => Any) : Unit
def assume (assumption : Boolean) : Unit
def assume (assumption : Boolean, message : => Any) : Unit
implicit def augmentString (x : java.lang.String) : StringOps
implicit def boolean2Boolean (x : Boolean) : java.lang.Boolean
implicit def booleanArrayOps (xs : Array[Boolean]) : ArrayOps[Boolean]
implicit def booleanWrapper (x : Boolean) : RichBoolean
implicit def byte2Byte (x : Byte) : java.lang.Byte
implicit def byte2double (x : Byte) : Double
implicit def byte2float (x : Byte) : Float
implicit def byte2int (x : Byte) : Int
implicit def byte2long (x : Byte) : Long
implicit def byte2short (x : Byte) : Short
implicit def byteArrayOps (xs : Array[Byte]) : ArrayOps[Byte]
implicit def byteWrapper (x : Byte) : RichByte
implicit def char2Character (x : Char) : java.lang.Character
implicit def char2double (x : Char) : Double
implicit def char2float (x : Char) : Float
implicit def char2int (x : Char) : Int
implicit def char2long (x : Char) : Long
implicit def charArrayOps (xs : Array[Char]) : ArrayOps[Char]
implicit def charWrapper (c : Char) : RichChar
def classManifest [T](implicit m : ClassManifest[T]) : ClassManifest[T]
def classOf [T] : java.lang.Class[T]
Return the runtime representation of a class type. This is a stub method. The actual implementation is filled in by the compiler.
implicit def conforms [A] : <:<[A, A]
def currentThread : java.lang.Thread
implicit def double2Double (x : Double) : java.lang.Double
implicit def doubleArrayOps (xs : Array[Double]) : ArrayOps[Double]
implicit def doubleWrapper (x : Double) : RichDouble
def error (message : java.lang.String) : Nothing
implicit def exceptionWrapper (exc : java.lang.Throwable) : RichException
def exit : Nothing
def exit (status : Int) : Nothing
implicit def float2Float (x : Float) : java.lang.Float
implicit def float2double (x : Float) : Double
implicit def floatArrayOps (xs : Array[Float]) : ArrayOps[Float]
implicit def floatWrapper (x : Float) : RichFloat
def format (text : java.lang.String, xs : Any*) : java.lang.String
implicit def genericArrayOps [T](xs : Array[T]) : ArrayOps[T]
def hash (x : java.lang.Long) : Int
def hash (x : Int) : Int
def hash (x : java.lang.Number) : Int
def hash (x : Any) : Int
def identity [A](x : A) : A
def implicitly [T](implicit e : T) : T
implicit def int2Integer (x : Int) : java.lang.Integer
implicit def int2double (x : Int) : Double
implicit def int2float (x : Int) : Float
implicit def int2long (x : Int) : Long
implicit def intArrayOps (xs : Array[Int]) : ArrayOps[Int]
implicit def intWrapper (x : Int) : RichInt
def locally [T](x : T) : T
implicit def long2Long (x : Long) : java.lang.Long
implicit def long2double (x : Long) : Double
implicit def long2float (x : Long) : Float
implicit def longArrayOps (xs : Array[Long]) : ArrayOps[Long]
implicit def longWrapper (x : Long) : RichLong
def manifest [T](implicit m : scala.reflect.Manifest[T]) : scala.reflect.Manifest[T]
def print (x : Any) : Unit
def printf (text : java.lang.String, xs : Any*) : Unit
def println : Unit
def println (x : Any) : Unit
def readBoolean : Boolean
def readByte : Byte
def readChar : Char
def readDouble : Double
def readFloat : Float
def readInt : Int
def readLine : java.lang.String
def readLine (text : java.lang.String, args : Any*) : java.lang.String
def readLong : Long
def readShort : Short
def readf (format : java.lang.String) : List[Any]
def readf1 (format : java.lang.String) : Any
def readf2 (format : java.lang.String) : (Any, Any)
def readf3 (format : java.lang.String) : (Any, Any, Any)
implicit def refArrayOps [T <: AnyRef](xs : Array[T]) : ArrayOps[T]
def require (requirement : Boolean, message : => Any) : Unit
def require (requirement : Boolean) : Unit
implicit def seqToCharSequence (xs : IndexedSeq[Char]) : java.lang.CharSequence
implicit def short2Short (x : Short) : java.lang.Short
implicit def short2double (x : Short) : Double
implicit def short2float (x : Short) : Float
implicit def short2int (x : Short) : Int
implicit def short2long (x : Short) : Long
implicit def shortArrayOps (xs : Array[Short]) : ArrayOps[Short]
implicit def shortWrapper (x : Short) : RichShort
implicit def stringCanBuildFrom : CanBuildFrom[java.lang.String, Char, java.lang.String]
implicit def unaugmentString (x : StringOps) : java.lang.String
implicit def unitArrayOps (xs : Array[Unit]) : ArrayOps[Unit]
Methods inherited from LowPriorityImplicits
genericWrapArray, wrapRefArray, wrapIntArray, wrapDoubleArray, wrapLongArray, wrapFloatArray, wrapCharArray, wrapByteArray, wrapShortArray, wrapBooleanArray, wrapUnitArray, wrapString, unwrapString, fallbackStringCanBuildFrom, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray, wrapArray
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
sealed abstract class <:< [-From, +To] extends (From) => To
class ArrowAssoc [A](x : A) extends AnyRef
class DummyImplicit extends AnyRef
A type for which there is aways an implicit value.
class Ensuring [A](x : A) extends AnyRef
Object Summary
object DummyImplicit extends AnyRef
object Pair extends AnyRef
object Triple extends AnyRef
Type Details
@deprecated("lower-case type aliases will be removed")

type byte

@deprecated("lower-case type aliases will be removed")

type short

@deprecated("lower-case type aliases will be removed")

type char

@deprecated("lower-case type aliases will be removed")

type int

@deprecated("lower-case type aliases will be removed")

type long

@deprecated("lower-case type aliases will be removed")

type float

@deprecated("lower-case type aliases will be removed")

type double

@deprecated("lower-case type aliases will be removed")

type boolean

@deprecated("lower-case type aliases will be removed")

type unit

type String

type Class

type Function

type Map

type Set

type Manifest

type ClassManifest

type Pair

type Triple

Value Details
val Map : Map

val Set : Set

Method Details
def classOf[T] : java.lang.Class[T]
Return the runtime representation of a class type. This is a stub method. The actual implementation is filled in by the compiler.

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

def manifest[T](implicit m : scala.reflect.Manifest[T]) : scala.reflect.Manifest[T]

def classManifest[T](implicit m : ClassManifest[T]) : ClassManifest[T]

def identity[A](x : A) : A

def currentThread : java.lang.Thread

@inline

def locally[T](x : T) : T

@inline

def hash(x : Any) : Int

@inline

def hash(x : java.lang.Number) : Int

@inline

def hash(x : java.lang.Long) : Int

@inline

def hash(x : Int) : Int

def error(message : java.lang.String) : Nothing

def exit : Nothing

def exit(status : Int) : Nothing

@elidable(annotation.elidable.ASSERTION)

def assert(assertion : Boolean) : Unit

@elidable(annotation.elidable.ASSERTION)

def assert(assertion : Boolean, message : => Any) : Unit

@elidable(annotation.elidable.ASSERTION)

def assume(assumption : Boolean) : Unit

@elidable(annotation.elidable.ASSERTION)

def assume(assumption : Boolean, message : => Any) : Unit

def require(requirement : Boolean) : Unit

def require(requirement : Boolean, message : => Any) : Unit

implicit def any2Ensuring[A](x : A) : Ensuring[A]

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

def Tuple[A1](x1 : A1) : (A1)

def Tuple[A1, A2](x1 : A1, x2 : A2) : (A1, A2)

def Tuple[A1, A2, A3](x1 : A1, x2 : A2, x3 : A3) : (A1, A2, A3)

def Tuple[A1, A2, A3, A4](x1 : A1, x2 : A2, x3 : A3, x4 : A4) : (A1, A2, A3, A4)

def Tuple[A1, A2, A3, A4, A5](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5) : (A1, A2, A3, A4, A5)

def Tuple[A1, A2, A3, A4, A5, A6](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6) : (A1, A2, A3, A4, A5, A6)

def Tuple[A1, A2, A3, A4, A5, A6, A7](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7) : (A1, A2, A3, A4, A5, A6, A7)

def Tuple[A1, A2, A3, A4, A5, A6, A7, A8](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7, x8 : A8) : (A1, A2, A3, A4, A5, A6, A7, A8)

def Tuple[A1, A2, A3, A4, A5, A6, A7, A8, A9](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6, x7 : A7, x8 : A8, x9 : A9) : (A1, A2, A3, A4, A5, A6, A7, A8, A9)

def print(x : Any) : Unit

def println : Unit

def println(x : Any) : Unit

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

def format(text : java.lang.String, xs : Any*) : java.lang.String

def readLine : java.lang.String

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

def readBoolean : Boolean

def readByte : Byte

def readShort : Short

def readChar : Char

def readInt : Int

def readLong : Long

def readFloat : Float

def readDouble : Double

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

def readf1(format : java.lang.String) : Any

def readf2(format : java.lang.String) : (Any, Any)

def readf3(format : java.lang.String) : (Any, Any, Any)

implicit def byteWrapper(x : Byte) : RichByte

implicit def shortWrapper(x : Short) : RichShort

implicit def intWrapper(x : Int) : RichInt

implicit def charWrapper(c : Char) : RichChar

implicit def longWrapper(x : Long) : RichLong

implicit def floatWrapper(x : Float) : RichFloat

implicit def doubleWrapper(x : Double) : RichDouble

implicit def booleanWrapper(x : Boolean) : RichBoolean

implicit def exceptionWrapper(exc : java.lang.Throwable) : RichException

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

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

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

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

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

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

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

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

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

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

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

implicit def byte2short(x : Byte) : Short

implicit def byte2int(x : Byte) : Int

implicit def byte2long(x : Byte) : Long

implicit def byte2float(x : Byte) : Float

implicit def byte2double(x : Byte) : Double

implicit def short2int(x : Short) : Int

implicit def short2long(x : Short) : Long

implicit def short2float(x : Short) : Float

implicit def short2double(x : Short) : Double

implicit def char2int(x : Char) : Int

implicit def char2long(x : Char) : Long

implicit def char2float(x : Char) : Float

implicit def char2double(x : Char) : Double

implicit def int2long(x : Int) : Long

implicit def int2float(x : Int) : Float

implicit def int2double(x : Int) : Double

implicit def long2float(x : Long) : Float

implicit def long2double(x : Long) : Double

implicit def float2double(x : Float) : Double

implicit def byte2Byte(x : Byte) : java.lang.Byte

implicit def short2Short(x : Short) : java.lang.Short

implicit def char2Character(x : Char) : java.lang.Character

implicit def int2Integer(x : Int) : java.lang.Integer

implicit def long2Long(x : Long) : java.lang.Long

implicit def float2Float(x : Float) : java.lang.Float

implicit def double2Double(x : Double) : java.lang.Double

implicit def boolean2Boolean(x : Boolean) : java.lang.Boolean

implicit def any2stringadd(x : Any) : scala.runtime.StringAdd

implicit def augmentString(x : java.lang.String) : StringOps

implicit def unaugmentString(x : StringOps) : java.lang.String

implicit def stringCanBuildFrom : CanBuildFrom[java.lang.String, Char, java.lang.String]

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

implicit def arrayToCharSequence(xs : Array[Char]) : java.lang.CharSequence

implicit def conforms[A] : <:<[A, A]