SimpleFullTextMatcher { public boolean matches(final String search) { if (search == null) { return false; } String lowerCase = search.toLowerCase(); for (String token : tokens) { if (lowerCase.contains(token)) { return true; } } return false; } SimpleFullTextMatcher(final String search); boolean matches(final String search);  }
@Test public void testSimpleMatch() { SimpleFullTextMatcher matcher = new SimpleFullTextMatcher("abc def efg"); assertTrue(matcher.matches("abcdef")); }