|
Scala 2.1.7patch8283
|
class
PartialFunction
[ A , B ]
extends
java.lang.Object with
(A) => B with
scala.ScalaObjectPartialFunction[A, B]
is a
unary function where the domain does not include all values of type
A
. The function isDefinedAt
allows to
test dynamically, if a value is in the domain of the function.Def Summary | |
def
andThen
[ C ]
( k : (B) => C )
: java.lang.Object with scala.PartialFunction[A,C]
|
|
def
isDefinedAt
( x : A )
: scala.Boolean
Checks if a value is contained in the functions domain. |
|
def
orElse
[ A1 <: A , B <: B1 ]
( that : scala.PartialFunction[A1,B1] )
: java.lang.Object with scala.PartialFunction[A1,B1]
|
Def Detail |
def
andThen
[ C ]( k : (B) => C ) : java.lang.Object with scala.PartialFunction[A,C]
def
isDefinedAt
( x : A ) : scala.Boolean
x
is in the domain of this function.def
orElse
[ A1 <: A , B <: B1 ]( that : scala.PartialFunction[A1,B1] ) : java.lang.Object with scala.PartialFunction[A1,B1]