public class ObservablePatternMatchSet.SetCollectionUpdate extends java.lang.Object implements IObservablePatternMatchCollectionUpdate<Match>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Function<Match,?> |
converter |
protected java.util.Map<Match,java.lang.Object> |
matchToItem |
| Constructor and Description |
|---|
SetCollectionUpdate(java.util.function.Function<Match,?> converter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMatch(Match match)
Can be called to indicate that a match appeared and should be added to the collection.
|
void |
clear()
Called when the collection is cleared to clean up internal fields.
|
void |
removeMatch(Match match)
Can be called to indicate that a match disappeared and should be removed from the collection.
|
protected final java.util.function.Function<Match extends IPatternMatch,?> converter
protected final java.util.Map<Match extends IPatternMatch,java.lang.Object> matchToItem
public SetCollectionUpdate(java.util.function.Function<Match,?> converter)
public void addMatch(Match match)
IObservablePatternMatchCollectionUpdateaddMatch in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>match - the new matchpublic void removeMatch(Match match)
IObservablePatternMatchCollectionUpdateremoveMatch in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>match - the disappered matchpublic void clear()
IObservablePatternMatchCollectionUpdateclear in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>