- override
Returns all the elements in the given list that match this finder's pattern.
When implementing your own Finders that inherit directly from
Finder, this is the main method to override. If your finder
can efficiently be described just in terms of a predicate
function, consider extending MatchFinder instead.
Source
@override
Iterable<Element> apply(Iterable<Element> candidates) {
return candidates.where(matches);
}