AbstractPartialFunction
reformulates all operations of its supertrait PartialFunction
in terms of isDefinedAt
and applyOrElse
.
AbstractPartialFunction
reformulates all operations of its supertrait PartialFunction
in terms of isDefinedAt
and applyOrElse
.
This allows more efficient implementations in many cases:
orElse
method supports chained orElse
in linear time,
and with no slow-down if the orElse
part is not needed.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.
2.10
Dummy class which exist only to satisfy the JVM.
Dummy class which exist only to satisfy the JVM. It corresponds
to scala.Nothing
. If such type appears in method
signatures, it is erased to this one.
Dummy class which exist only to satisfy the JVM.
Dummy class which exist only to satisfy the JVM. It corresponds to
scala.Null
. If such type appears in method signatures, it is erased
to this one. A private constructor ensures that Java code can't create
subclasses. The only value of type Null$ should be null
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.
2.9
2.9
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.)
See comment on ZippedTraversable2
(Since version 2.11.0) Use Throwable#getStackTrace
(Since version 2.11.0) Use Predef.SeqCharSequence
A wrapper class that adds string concatenation +
to any value
A wrapper class that adds string concatenation +
to any value
(Since version 2.11.0) Use Predef.StringAdd
A wrapper class that adds a formatted
operation to any value
A wrapper class that adds a formatted
operation to any value
(Since version 2.11.0) Use Predef.StringFormat
The object ScalaRunTime provides support methods required by the scala runtime.
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.