Code example for Pattern

Methods: matcherpattern

0
        } 
        return defaultValue;
    } 
 
    public void filter(Pattern pattern) {
        if (pattern == null || pattern.pattern().length() == 0) {
            filtered = false;
        } else { 
            filtered = pattern.matcher(shortName).find() || pattern.matcher(id).find();
        } 
        listener.nodeStateChanged(this);
    } 
 
    void computeIndex() { 
        index = parent == null ? 0 : parent.children.indexOf(this);
        listener.nodeIndexChanged(this);
    } 
 
    void setShortName(String shortName) {
        this.shortName = shortName;
Contextual code suggestions in your IDE  Get Codota for Java