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