Пример #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);
 }