class UnitMatch[I] extends AbstractMatch[I, BoxedUnit]
Ordering
- Alphabetic
- By Inheritance
Inherited
- UnitMatch
- 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, 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
Version of
scala.PartialFunction
that can be built during runtime from Java. This is a specialized version ofUnitMatch
to map java void methods toscala.runtime.BoxedUnit
.