示例#1
0
 public boolean isMatch(Alert alert) {
   for (AlertPattern pat : patterns) {
     if (pat.isMatch(alert)) {
       return true;
     }
   }
   return false;
 }
示例#2
0
 public boolean isMatch(Alert alert) {
   return !pattern.isMatch(alert);
 }