1 package com.atlassian.user.search.query.match;
2
3 /**
4 * An interface for matching the contents of a string against a search term. Implements will describe the situations in
5 * which they match.
6 */
7 public interface Matcher
8 {
9 /**
10 * Returns true if the content "matches" the searchTerm, according to the matching rules of the implementation.
11 *
12 * @param content the content to search
13 * @param searchTerm the term to search for
14 * @return <tt>true</tt> if the content matches the search term, according to the matching rules of the
15 * implementation, otherwise <tt>false</tt>.
16 */
17 boolean matches(String content, String searchTerm);
18 }