Interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>
-
- All Known Implementing Classes:
ObservablePatternMatchList.ListCollectionUpdate
,ObservablePatternMatchSet.SetCollectionUpdate
public interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>
Common interface for observable pattern match collections (e.g.ObservablePatternMatchList
andObservablePatternMatchSet
).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addMatch
void addMatch(Match match)
Can be called to indicate that a match appeared and should be added to the collection.- Parameters:
match
- the new match
-
removeMatch
void removeMatch(Match match)
Can be called to indicate that a match disappeared and should be removed from the collection.- Parameters:
match
- the disappered match
-
clear
void clear()
Called when the collection is cleared to clean up internal fields.
-
-