final class PartialFunctionOps[A, B] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartialFunctionOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PartialFunctionOps(pf: PartialFunction[A, B])

Value Members

  1. def applyNOpt(a: A): commons.NOpt[B]
  2. def applyOpt(a: A): commons.Opt[B]
  3. def fold[C](a: A)(forEmpty: (A) ⇒ C, forNonEmpty: (B) ⇒ C): C
  4. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  5. 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 where orElse would have to be called on a partial function literal, which does not work well with type inference.