public class ObservablePatternMatchList.ListCollectionUpdate extends java.lang.Object implements IObservablePatternMatchCollectionUpdate<Match>
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator<Match> |
comparator |
protected com.google.common.base.Function<Match,?> |
converter |
protected static java.lang.String |
DATA_BINDING_REALM_MUST_NOT_BE_NULL |
protected java.util.Map<Match,java.lang.Object> |
matchToItem |
protected org.eclipse.core.databinding.observable.list.ListDiff |
nextDiff |
Constructor and Description |
---|
ListCollectionUpdate(com.google.common.base.Function<Match,?> converter,
java.util.Comparator<Match> comparator) |
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 static final java.lang.String DATA_BINDING_REALM_MUST_NOT_BE_NULL
protected final com.google.common.base.Function<Match extends IPatternMatch,?> converter
protected final java.util.Comparator<Match extends IPatternMatch> comparator
protected final java.util.Map<Match extends IPatternMatch,java.lang.Object> matchToItem
protected org.eclipse.core.databinding.observable.list.ListDiff nextDiff
public void addMatch(Match match)
IObservablePatternMatchCollectionUpdate
addMatch
in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>
match
- the new matchpublic void removeMatch(Match match)
IObservablePatternMatchCollectionUpdate
removeMatch
in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>
match
- the disappered matchpublic void clear()
IObservablePatternMatchCollectionUpdate
clear
in interface IObservablePatternMatchCollectionUpdate<Match extends IPatternMatch>