evaluate method

FinderResult<CandidateType> evaluate()

Searches a set of candidates for those that meet the requirements set by this finder and returns the result of that search.

See also:

  • found which will return the latest results without re-executing the search.
  • tryEvaluate which will indicate whether any results were found rather than directly returning results.


FinderResult<CandidateType> evaluate() {
  if (!_cached || _found == null) {
    _found = FinderResult<CandidateType>(describeMatch, findInCandidates(allCandidates));
  return found;