예제 #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);
 }