コード例 #1
0
 @Override
 public boolean canTake(Queue.BuildableItem item) {
   for (JobRestriction restriction : restrictions) {
     if (restriction.canTake(item)) {
       return true;
     }
   }
   return false;
 }
コード例 #2
0
 @Override
 public boolean canTake(Run run) {
   for (JobRestriction restriction : restrictions) {
     if (restriction.canTake(run)) {
       return true;
     }
   }
   return false;
 }