final class PartialFunctionOps[A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PartialFunctionOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new PartialFunctionOps(pf: PartialFunction[A, B])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def applyNOpt(a: A): commons.NOpt[B]
- def applyOpt(a: A): commons.Opt[B]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def fold[C](a: A)(forEmpty: (A) ⇒ C, forNonEmpty: (B) ⇒ C): C
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
unless(pre: PartialFunction[A, B]): PartialFunction[A, B]
The same thing as
orElse
but with arguments flipped.The same thing as
orElse
but with arguments flipped. Useful in situations whereorElse
would have to be called on a partial function literal, which does not work well with type inference.