예제 #1
0
 @Override
 public FilterSet clone() {
   FilterSet result = new FilterSet();
   for (MappingFilter f : this) {
     result.add(f.clone());
   }
   return result;
 }
예제 #2
0
 @Override
 public boolean equals(Object o) {
   if (o instanceof FilterSet) {
     FilterSet f = (FilterSet) o;
     if (f.size() != this.size()) {
       return false;
     }
     for (int i = 0; i < f.size(); i++) {
       if (!f.get(i).equals(this.get(i))) {
         return false;
       }
     }
     return true;
   }
   return false;
 }