Match - public class ObservableCollectionProcessor<Match extends IPatternMatch> extends java.lang.Object implements IMatchProcessor<Match>
Direction and an IObservablePatternMatchCollectionUpdate.
It can be registered for rules that take care of keeping the observable collection up-to-date (see
ObservableCollectionHelper#createRuleInAgenda).| Constructor and Description |
|---|
ObservableCollectionProcessor(Direction direction,
IObservablePatternMatchCollectionUpdate<Match> collection)
Creates a processor with the given direction and observable collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(Match match)
Defines the action that is to be executed on each match.
|
public ObservableCollectionProcessor(Direction direction, IObservablePatternMatchCollectionUpdate<Match> collection)
direction - the Direction of updates that are handledcollection - the IObservablePatternMatchCollectionUpdate to managepublic void process(Match match)
IMatchProcessorprocess in interface IMatchProcessor<Match extends IPatternMatch>match - a single match of the pattern that must be processed by the implementation of this method