class Match[I, R] extends AbstractMatch[I, R]
Ordering
- Alphabetic
- By Inheritance
Inherited
- Match
- AbstractMatch
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def asPF(): PartialFunction[I, R]
Turn this
Match
into ascala.PartialFunction
.Turn this
Match
into ascala.PartialFunction
.- returns
a partial function representation ot his
Match
- Definition Classes
- AbstractMatch
- 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
Version of
scala.PartialFunction
that can be built during runtime from Java.