本文整理汇总了Java中com.csipsimple.models.Filter.MATCHER_STARTS属性的典型用法代码示例。如果您正苦于以下问题:Java Filter.MATCHER_STARTS属性的具体用法?Java Filter.MATCHER_STARTS怎么用?Java Filter.MATCHER_STARTS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.csipsimple.models.Filter
的用法示例。
在下文中一共展示了Filter.MATCHER_STARTS属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFilterRemoveReplaceLeading
private Filter getFilterRemoveReplaceLeading(String prefix, String replace) {
Filter f = new Filter();
f.action = Filter.ACTION_REPLACE;
f.matchPattern = "^" + Pattern.quote(prefix) + "(.*)$";
f.replacePattern = replace + "$1";
f.matchType = Filter.MATCHER_STARTS;
return f;
}
示例2: getDefaultFilters
@Override
public List<Filter> getDefaultFilters(SipProfile acc) {
ArrayList<Filter> filters = new ArrayList<Filter>();
Filter f = new Filter();
f.account = (int) acc.id;
f.action = Filter.ACTION_REPLACE;
f.matchPattern = "^"+Pattern.quote("+")+"(.*)$";
f.replacePattern = "$1";
f.matchType = Filter.MATCHER_STARTS;
filters.add(f);
return filters;
}
示例3: getDefaultFilters
@Override
public List<Filter> getDefaultFilters(SipProfile acc) {
ArrayList<Filter> filters = new ArrayList<Filter>();
Filter f = new Filter();
f.account = (int) acc.id;
f.action = Filter.ACTION_REPLACE;
f.matchPattern = "^"+Pattern.quote("+")+"(.*)$";
f.replacePattern = "$1";
f.matchType = Filter.MATCHER_STARTS;
filters.add(f);
return filters;
}
示例4: getDefaultFilters
@Override
public List<Filter> getDefaultFilters(SipProfile acc) {
ArrayList<Filter> filters = new ArrayList<Filter>();
Filter f = new Filter();
f.account = (int) acc.id;
f.action = Filter.ACTION_REPLACE;
f.matchPattern = "^" + Pattern.quote("+") + "(.*)$";
f.replacePattern = "00$1";
f.matchType = Filter.MATCHER_STARTS;
filters.add(f);
return filters;
}