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 aDirectionand 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 voidaccept(Match match)
-
-
-
Constructor Detail
-
ObservableCollectionProcessor
public ObservableCollectionProcessor(Direction direction, IObservablePatternMatchCollectionUpdate<Match> collection)
Creates a processor with the given direction and observable collection.- Parameters:
direction- theDirectionof updates that are handledcollection- theIObservablePatternMatchCollectionUpdateto manage
-
-
Method Detail
-
accept
public void accept(Match match)
- Specified by:
acceptin interfacejava.util.function.Consumer<Match extends IPatternMatch>- Since:
- 2.0
-
-