com.atlassian.user.search.query.match
Class StartsWithIgnoreCaseMatcher

java.lang.Object
  extended bycom.atlassian.user.search.query.match.StartsWithIgnoreCaseMatcher
All Implemented Interfaces:
Matcher

public class StartsWithIgnoreCaseMatcher
extends java.lang.Object
implements Matcher

Matches if content.startsWith(searchTerm) returns true after the arguments have been converted to lower case. If either argument is null or the content is an empty string (""), returns false.


Constructor Summary
StartsWithIgnoreCaseMatcher()
           
 
Method Summary
 boolean matches(java.lang.String content, java.lang.String searchTerm)
          Returns true if the content "matches" the searchTerm, according to the matching rules of the implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartsWithIgnoreCaseMatcher

public StartsWithIgnoreCaseMatcher()
Method Detail

matches

public boolean matches(java.lang.String content,
                       java.lang.String searchTerm)
Description copied from interface: Matcher
Returns true if the content "matches" the searchTerm, according to the matching rules of the implementation.

Specified by:
matches in interface Matcher
Parameters:
content - the content to search
searchTerm - the term to search for
Returns:
true if the content matches the search term, according to the matching rules of the implementation, otherwise false.


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.