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
Represent the result of a search in memory collection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aMatchto this search result.voidaddMatches(Collection<Match> matches) Adds a number ofMatches to this search result.Gets collecting matches
-
Constructor Details
-
SimpleSearchResultCollector
public SimpleSearchResultCollector()
-
-
Method Details
-
addMatch
Description copied from interface:ISearchResultCollectorAdds aMatchto this search result. This method does nothing if the match is already present.- Specified by:
addMatchin interfaceISearchResultCollector- Parameters:
match- the match to add, cannot benull
-
addMatches
Description copied from interface:ISearchResultCollectorAdds a number ofMatches to this search result. This method does nothing for matches that are already present.- Specified by:
addMatchesin interfaceISearchResultCollector- Parameters:
matches- the matches to add, cannot benull
-
getMatches
Gets collecting matches- Returns:
- set of matches, never
null
-