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 Details

    • SimpleSearchResultCollector

      public SimpleSearchResultCollector()
  • Method Details

    • addMatch

      public void addMatch(Match match)
      Description copied from interface: ISearchResultCollector
      Adds a Match to this search result. This method does nothing if the match is already present.
      Specified by:
      addMatch in interface ISearchResultCollector
      Parameters:
      match - the match to add, cannot be null
    • addMatches

      public void addMatches(Collection<Match> matches)
      Description copied from interface: ISearchResultCollector
      Adds a number of Matches to this search result. This method does nothing for matches that are already present.
      Specified by:
      addMatches in interface ISearchResultCollector
      Parameters:
      matches - the matches to add, cannot be null
    • getMatches

      public Collection<Match> getMatches()
      Gets collecting matches
      Returns:
      set of matches, never null