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
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Match
- AbstractMatch
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
asPF(): PartialFunction[I, R]
Turn this
Matchinto ascala.PartialFunction.Turn this
Matchinto 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
MatchErrorif there is no match