@FunctionalInterface
@API(status=STABLE)
public interface ActivityMatcher<C extends ActivityContext<?>>
Modifier and Type | Method and Description |
---|---|
static <C extends ActivityContext<?>> |
always()
Returns a matcher that always returns true.
|
boolean |
matches(C context)
Matches the
ActivityContext to decide whether an AbstractActivity can be executed or not. |
boolean matches(C context)
ActivityContext
to decide whether an AbstractActivity
can be executed or not.context
- Current activity context.AbstractActivity.onActivity(ActivityContext)
can be triggered, false otherwise.static <C extends ActivityContext<?>> ActivityMatcher<C> always()
C
- the type of the activity context