Code example for Pattern

Methods: matcher

0
            this.mPattern = Pattern.compile(attrValue);
        } 
 
        @Override 
        public boolean matchesValue(String value) {
            return value != null && mPattern.matcher(value).matches();
        } 
    } 
 
    private static class IsNullFilter extends StringFilter { 
        private final boolean mIsNull;
 
        public IsNullFilter(ValueProvider valueProvider, String attrValue) {
            super(valueProvider);
            mIsNull = Boolean.parseBoolean(attrValue);
        } 
 
        public IsNullFilter(ValueProvider valueProvider, boolean isNull) {
            super(valueProvider);
            mIsNull = isNull;
        }