예제 #1
0
 public boolean accept(Object object) {
   for (OpFilter filter : filters) {
     if (filter.accept(object)) return true;
   }
   return false;
 }
예제 #2
0
 /**
  * Determines whether the current operation can operate on the object.
  *
  * @return true if object can be used as the operation input.
  */
 public boolean isValid(Object obj) {
   return !this.loadingError
       && AdapterUtil.instance.canAdaptTo(targetClass, obj)
       && filter.accept(obj);
 }