1 package com.atlassian.user.search.query.match;
2
3 import org.apache.commons.lang.StringUtils;
4
5 /**
6 * Matches if {@link StringUtils#equalsIgnoreCase(String, String)} returns true for the arguments,
7 * and content is neither null nor an empty string ("").
8 */
9 public class EqualsIgnoreCaseMatcher implements Matcher
10 {
11 public boolean matches(String content, String searchTerm)
12 {
13 return !StringUtils.isBlank(content) && StringUtils.equalsIgnoreCase(content, searchTerm);
14 }
15 }