class UnitMatch[I] extends AbstractMatch[I, BoxedUnit]
Version of scala.PartialFunction
that can be built during runtime from Java. This is a
specialized version of UnitMatch
to map java void methods to scala.runtime.BoxedUnit
.
- Source
- UnitMatch.java
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- UnitMatch
- 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, BoxedUnit]
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): Unit
Convenience function to make the Java code more readable.
Convenience function to make the Java code more readable.
UnitMatcher<X> matcher = UnitMatcher.create(...); matcher.match(obj);
- i
the argument to apply the match to
- Exceptions thrown
scala.MatchError
if there is no match