Package com._1c.g5.v8.dt.search.core
Class SimpleSearchResultCollector
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.SimpleSearchResultCollector
-
- All Implemented Interfaces:
ISearchResultCollector
- Direct Known Subclasses:
TextSearchRefactoringResultCollector
public class SimpleSearchResultCollector extends Object implements ISearchResultCollector
Represent the result of a search in memory collection
-
-
Constructor Summary
Constructors Constructor Description SimpleSearchResultCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatch(Match match)
Adds aMatch
to this search result.void
addMatches(Collection<Match> matches)
Adds a number ofMatch
es to this search result.Collection<Match>
getMatches()
Gets collecting matches
-
-
-
Method Detail
-
addMatch
public void addMatch(Match match)
Description copied from interface:ISearchResultCollector
Adds aMatch
to this search result. This method does nothing if the match is already present.- Specified by:
addMatch
in interfaceISearchResultCollector
- Parameters:
match
- the match to add, cannot benull
-
addMatches
public void addMatches(Collection<Match> matches)
Description copied from interface:ISearchResultCollector
Adds a number ofMatch
es to this search result. This method does nothing for matches that are already present.- Specified by:
addMatches
in interfaceISearchResultCollector
- Parameters:
matches
- the matches to add, cannot benull
-
getMatches
public Collection<Match> getMatches()
Gets collecting matches- Returns:
- set of matches, never
null
-
-