public interface ExtendedContactSourceService extends ContactSourceService
Matcher matcher = pattern.matcher(myString);
if(matcher.find())
....
The advantages of passing a Pattern over a String are that
a Pattern can use a predefined regular expression and
can define certain properties like Pattern.CASE_INSENSITIVE,
Pattern.UNICODE_CASE, etc., which could be important for the search.CONTACT_LIST_TYPE, DEFAULT_TYPE, HISTORY_TYPE, SEARCH_TYPE
Modifier and Type | Method and Description |
---|---|
ContactQuery |
createContactQuery(java.util.regex.Pattern queryPattern)
Creates query for the given searchPattern.
|
createContactQuery, createContactQuery, getDisplayName, getIndex, getType
ContactQuery createContactQuery(java.util.regex.Pattern queryPattern)
queryPattern
- the pattern to search for
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.