@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RegexPredicateNode that = (RegexPredicateNode) o;
        return Objects.equals(pattern, that.pattern) && Objects.equals(expression, that.expression);
    }
Protocol class for {@code RegexPredicate}.

@author bjorncs
searchlib/src/main/java/com/yahoo/searchlib/expression/RegexPredicateNode.java