Class ObservableCollectionProcessor<Match extends IPatternMatch>
- java.lang.Object
-
- org.eclipse.viatra.addon.databinding.runtime.collection.ObservableCollectionProcessor<Match>
-
- Type Parameters:
Match
-
- All Implemented Interfaces:
java.util.function.Consumer<Match>
public class ObservableCollectionProcessor<Match extends IPatternMatch> extends java.lang.Object implements java.util.function.Consumer<Match>
Match processor that can be parameterized with aDirection
and anIObservablePatternMatchCollectionUpdate
. It can be registered for rules that take care of keeping the observable collection up-to-date (seeObservableCollectionHelper#createRuleInAgenda
).
-
-
Constructor Summary
Constructors Constructor Description ObservableCollectionProcessor(Direction direction, IObservablePatternMatchCollectionUpdate<Match> collection)
Creates a processor with the given direction and observable collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Match match)
-
-
-
Constructor Detail
-
ObservableCollectionProcessor
public ObservableCollectionProcessor(Direction direction, IObservablePatternMatchCollectionUpdate<Match> collection)
Creates a processor with the given direction and observable collection.- Parameters:
direction
- theDirection
of updates that are handledcollection
- theIObservablePatternMatchCollectionUpdate
to manage
-
-
Method Detail
-
accept
public void accept(Match match)
- Specified by:
accept
in interfacejava.util.function.Consumer<Match extends IPatternMatch>
- Since:
- 2.0
-
-