Packages

class Match[I, R] extends AbstractMatch[I, R]

Version of scala.PartialFunction that can be built during runtime from Java.

Source
Match.java
Linear Supertypes
AbstractMatch[I, R], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Match
  2. AbstractMatch
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def asPF(): PartialFunction[I, R]

    Turn this Match into a scala.PartialFunction.

    Turn this Match into a scala.PartialFunction.

    returns

    a partial function representation ot his Match

    Definition Classes
    AbstractMatch
  2. def match(i: I): R

    Convenience function to make the Java code more readable.

    Convenience function to make the Java code more readable.

    
      Match<X, Y> matcher = Match.create(...);
    
      Y someY = matcher.match(obj);
    
    

    i

    the argument to apply the match to

    returns

    the result of the application

    Exceptions thrown

    MatchError if there is no match