package runtime
- Source
- package.scala
- Alphabetic
- By Inheritance
- runtime
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract class AbstractFunction0[+R] extends () ⇒ R
- abstract class AbstractFunction1[-T1, +R] extends (T1) ⇒ R
- abstract class AbstractFunction10[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- abstract class AbstractFunction11[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- abstract class AbstractFunction12[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- abstract class AbstractFunction13[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- abstract class AbstractFunction14[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- abstract class AbstractFunction15[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- abstract class AbstractFunction16[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- abstract class AbstractFunction17[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- abstract class AbstractFunction18[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- abstract class AbstractFunction19[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- abstract class AbstractFunction2[-T1, -T2, +R] extends (T1, T2) ⇒ R
- abstract class AbstractFunction20[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- abstract class AbstractFunction21[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, -T21, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- abstract class AbstractFunction22[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, -T10, -T11, -T12, -T13, -T14, -T15, -T16, -T17, -T18, -T19, -T20, -T21, -T22, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- abstract class AbstractFunction3[-T1, -T2, -T3, +R] extends (T1, T2, T3) ⇒ R
- abstract class AbstractFunction4[-T1, -T2, -T3, -T4, +R] extends (T1, T2, T3, T4) ⇒ R
- abstract class AbstractFunction5[-T1, -T2, -T3, -T4, -T5, +R] extends (T1, T2, T3, T4, T5) ⇒ R
- abstract class AbstractFunction6[-T1, -T2, -T3, -T4, -T5, -T6, +R] extends (T1, T2, T3, T4, T5, T6) ⇒ R
- abstract class AbstractFunction7[-T1, -T2, -T3, -T4, -T5, -T6, -T7, +R] extends (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- abstract class AbstractFunction8[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- abstract class AbstractFunction9[-T1, -T2, -T3, -T4, -T5, -T6, -T7, -T8, -T9, +R] extends (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
-
abstract
class
AbstractPartialFunction[-T1, +R] extends (T1) ⇒ R with PartialFunction[T1, R]
AbstractPartialFunction
reformulates all operations of its supertraitPartialFunction
in terms ofisDefinedAt
andapplyOrElse
.AbstractPartialFunction
reformulates all operations of its supertraitPartialFunction
in terms ofisDefinedAt
andapplyOrElse
.This allows more efficient implementations in many cases:
- optimized
orElse
method supports chainedorElse
in linear time, and with no slow-down if theorElse
part is not needed. - optimized
lift
method helps to avoid double evaluation of pattern matchers & guards of partial function literals.
This trait is used as a basis for implementation of all partial function literals.
- Since
2.10
- optimized
- final class ArrayCharSequence extends CharSequence
- trait FractionalProxy[T] extends ScalaNumberProxy[T] with RangedProxy[T]
- trait IntegralProxy[T] extends ScalaWholeNumberProxy[T] with RangedProxy[T]
-
class
LazyBoolean extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyByte extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyChar extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyDouble extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyFloat extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyInt extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyLong extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyRef[T] extends Serializable
Classes used as holders for lazy vals defined in methods.
Classes used as holders for lazy vals defined in methods.
- Annotations
- @SerialVersionUID()
-
class
LazyShort extends Serializable
- Annotations
- @SerialVersionUID()
-
class
LazyUnit extends Serializable
- Annotations
- @SerialVersionUID()
- class NonLocalReturnControl[T] extends Throwable with ControlThrowable
- trait OrderedProxy[T] extends Ordered[T] with Typed[T]
- trait RangedProxy[T] extends Typed[T]
- final class RichBoolean extends AnyVal with OrderedProxy[Boolean]
- final class RichByte extends AnyVal with ScalaWholeNumberProxy[Byte]
- final class RichChar extends AnyVal with IntegralProxy[Char]
- final class RichDouble extends AnyVal with FractionalProxy[Double]
- final class RichFloat extends AnyVal with FractionalProxy[Float]
- final class RichInt extends AnyVal with ScalaNumberProxy[Int] with RangedProxy[Int]
- final class RichLong extends AnyVal with IntegralProxy[Long]
- final class RichShort extends AnyVal with ScalaWholeNumberProxy[Short]
-
trait
ScalaNumberProxy[T] extends ScalaNumericAnyConversions with Typed[T] with OrderedProxy[T]
Base classes for the Rich* wrappers of the primitive types.
Base classes for the Rich* wrappers of the primitive types. As with all classes in scala.runtime.*, this is not a supported API.
- Version
2.9
- Since
2.9
- trait ScalaWholeNumberProxy[T] extends ScalaNumberProxy[T]
- final class Tuple2Zipped[El1, Repr1, El2, Repr2] extends AnyVal with ZippedTraversable2[El1, El2]
- final class Tuple3Zipped[El1, Repr1, El2, Repr2, El3, Repr3] extends AnyVal with ZippedTraversable3[El1, El2, El3]
-
trait
ZippedTraversable2[+El1, +El2] extends Any
This interface is intended as a minimal interface, not complicated by the requirement to resolve type constructors, for implicit search (which only needs to find an implicit conversion to Traversable for our purposes.)
-
trait
ZippedTraversable3[+El1, +El2, +El3] extends Any
See comment on ZippedTraversable2
-
final
class
RichException extends AnyRef
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use Throwable#getStackTrace
-
final
class
SeqCharSequence extends CharSequence
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use Predef.SeqCharSequence
-
final
class
StringFormat extends AnyVal
A wrapper class that adds a
formatted
operation to any valueA wrapper class that adds a
formatted
operation to any value- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) use Predef.StringFormat
Value Members
-
object
LambdaDeserializer
This class is only intended to be called by synthetic
$deserializeLambda$
method that the Scala 2.12 compiler will add to classes hosting lambdas.This class is only intended to be called by synthetic
$deserializeLambda$
method that the Scala 2.12 compiler will add to classes hosting lambdas.It is not intended to be consumed directly.
- object Tuple2Zipped
- object Tuple3Zipped
- object ZippedTraversable2
- object ZippedTraversable3
This is the documentation for the Scala standard library.
Package structure
The scala package contains core types like
Int
,Float
,Array
orOption
which are accessible in all Scala compilation units without explicit qualification or imports.Notable packages include:
scala.collection
and its sub-packages contain Scala's collections frameworkscala.collection.immutable
- Immutable, sequential data-structures such asVector
,List
,Range
,HashMap
orHashSet
scala.collection.mutable
- Mutable, sequential data-structures such asArrayBuffer
,StringBuilder
,HashMap
orHashSet
scala.collection.concurrent
- Mutable, concurrent data-structures such asTrieMap
scala.collection.parallel.immutable
- Immutable, parallel data-structures such asParVector
,ParRange
,ParHashMap
orParHashSet
scala.collection.parallel.mutable
- Mutable, parallel data-structures such asParArray
,ParHashMap
,ParTrieMap
orParHashSet
scala.concurrent
- Primitives for concurrent programming such asFutures
andPromises
scala.io
- Input and output operationsscala.math
- Basic math functions and additional numeric types likeBigInt
andBigDecimal
scala.sys
- Interaction with other processes and the operating systemscala.util.matching
- Regular expressionsOther packages exist. See the complete list on the right.
Additional parts of the standard library are shipped as separate libraries. These include:
scala.reflect
- Scala's reflection API (scala-reflect.jar)scala.xml
- XML parsing, manipulation, and serialization (scala-xml.jar)scala.swing
- A convenient wrapper around Java's GUI framework called Swing (scala-swing.jar)scala.util.parsing
- Parser combinators (scala-parser-combinators.jar)Automatic imports
Identifiers in the scala package and the
scala.Predef
object are always in scope by default.Some of these identifiers are type aliases provided as shortcuts to commonly used classes. For example,
List
is an alias forscala.collection.immutable.List
.Other aliases refer to classes provided by the underlying platform. For example, on the JVM,
String
is an alias forjava.lang.String
.