public boolean isMatch(Alert alert) { for (AlertPattern pat : patterns) { if (pat.isMatch(alert)) { return true; } } return false; }
public boolean equals(Object o) { if (o instanceof Not) { Not n = (Not) o; return pattern.equals(n.pattern); } return false; }
public boolean isMatch(Alert alert) { return !pattern.isMatch(alert); }