|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscala.runtime.AbstractPartialFunction<A,B>
akka.testkit.CachingPartialFunction<A,B>
public abstract class CachingPartialFunction<A,B>
INTERNAL API
This is a specialized variant of PartialFunction which is only
applicable if you know that isDefinedAt(x)
is always called before
apply(x)
—with the same x
of course.
match(x)
will be called for isDefinedAt(x)
only, and its semantics
are the same as for akka.japi.PurePartialFunction
(apart from the
missing because unneeded boolean argument).
This class is used internal to JavaTestKit and should not be extended by client code directly.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface scala.PartialFunction |
---|
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B> |
Constructor Summary | |
---|---|
CachingPartialFunction()
|
Method Summary | |
---|---|
B |
apply(A x)
|
B |
cache()
|
boolean |
isDefinedAt(A x)
|
abstract B |
match(A x)
|
Methods inherited from class scala.runtime.AbstractPartialFunction |
---|
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, applyOrElse, compose, lift, orElse, runWith, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CachingPartialFunction()
Method Detail |
---|
public abstract B match(A x)
public B cache()
public final boolean isDefinedAt(A x)
public final B apply(A x)
apply
in interface scala.Function1<A,B>
apply
in class scala.runtime.AbstractPartialFunction<A,B>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |