Scala Library
|
|
scala/Predef.scala
]
object
Predef
extends
AnyRefPredef
object provides definitions that are
accessible in all Scala compilation units without explicit
qualification.Type Summary | |
type
|
AbstractMethodError |
type
|
ArrayIndexOutOfBoundsException |
type
|
Character |
type
|
Class |
type
|
ClassCastException |
type
|
Error |
type
|
Exception |
type
|
Function |
type
|
IllegalArgumentException |
type
|
IndexOutOfBoundsException |
type
|
Integer |
type
|
Map |
type
|
NoSuchElementException |
type
|
NullPointerException |
type
|
NumberFormatException |
type
|
Pair |
type
|
Runnable |
type
|
RuntimeException |
type
|
Set |
type
|
String |
type
|
StringIndexOutOfBoundsException |
type
|
Throwable |
type
|
Triple |
type
|
UnsupportedOperationException |
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](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, 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, 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, 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](x1 : A1, x2 : A2, x3 : A3, x4 : A4, x5 : A5, x6 : A6) : (A1, A2, A3, A4, A5, A6) |
def
|
Tuple [A1](x1 : A1) : (A1) |
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 |
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
|
boolean2Boolean (x : Boolean) : java.lang.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
|
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
|
charWrapper (c : Char) : RichChar |
def
|
classOf
[T] : java.lang.Class[T]
Return the runtime representation of a class type.
|
def
|
currentThread : java.lang.Thread |
implicit def
|
double2Double (x : Double) : java.lang.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
|
floatWrapper (x : Float) : RichFloat |
def
|
format (text : java.lang.String, xs : Any*) : java.lang.String |
implicit def
|
identity [A](x : A) : A |
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
|
intWrapper (x : Int) : RichInt |
implicit def
|
long2Long (x : Long) : java.lang.Long |
implicit def
|
long2double (x : Long) : Double |
implicit def
|
long2float (x : Long) : Float |
implicit def
|
longWrapper (x : Long) : RichLong |
implicit def
|
orderingToOrdered
[T](x : T)(implicit ord : Ordering[T]) : Ordered[T]
Lens from Ordering[T] to Ordered[T]
|
def
|
print (x : Any) : Unit |
def
|
printf (text : java.lang.String, xs : Any*) : Unit |
def
|
println (x : Any) : Unit |
def
|
println : Unit |
def
|
readBoolean : Boolean |
def
|
readByte : Byte |
def
|
readChar : Char |
def
|
readDouble : Double |
def
|
readFloat : Float |
def
|
readInt : Int |
def
|
readLine (text : java.lang.String, args : Any*) : java.lang.String |
def
|
readLine : 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) |
def
|
require (requirement : Boolean, message : => Any) : Unit |
def
|
require (requirement : Boolean) : Unit |
implicit def
|
richString2String
(x : RichString) : java.lang.String
any random access character seq (including rich string can be converted into a string
|
implicit def
|
seqToCharSequence (xs : Vector[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
|
shortWrapper (x : Short) : RichShort |
implicit def
|
stringWrapper (x : java.lang.String) : RichString |
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 | |
class
|
ArrowAssoc
[A](x : A) extends AnyRef
|
class
|
Ensuring
[A](x : A) extends AnyRef
|
Object Summary | |
object
|
Pair
extends AnyRef
|
object
|
Triple
extends AnyRef
|
Type Details |
type
byte
type
short
type
char
type
int
type
long
type
float
type
double
type
boolean
type
unit
type
Integer
type
Character
type
String
type
Class
type
Runnable
type
Throwable
type
Exception
type
Error
type
RuntimeException
type
NullPointerException
type
ClassCastException
type
IndexOutOfBoundsException
type
ArrayIndexOutOfBoundsException
type
StringIndexOutOfBoundsException
type
UnsupportedOperationException
type
IllegalArgumentException
type
NoSuchElementException
type
NumberFormatException
type
AbstractMethodError
type
Function
type
Map
type
Set
type
Pair
type
Triple
Value Details |
Method Details |
def
classOf[T] : java.lang.Class[T]
def
error(message : java.lang.String) : Nothing
def
exit : Nothing
implicit
def
any2ArrowAssoc[A](x : A) : ArrowAssoc[A]
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
println : 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
doubleWrapper(x : Double) : RichDouble
implicit
def
booleanWrapper(x : Boolean) : RichBoolean
implicit
def
stringWrapper(x : java.lang.String) : RichString
implicit
def
any2stringadd(x : Any) : scala.runtime.StringAdd
implicit
def
exceptionWrapper(exc : java.lang.Throwable) : RichException
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
richString2String(x : RichString) : java.lang.String
implicit
def
seqToCharSequence(xs : Vector[Char]) : java.lang.CharSequence
def
currentThread : java.lang.Thread
Scala Library
|
|