Пример #1
0
 @Override
 public boolean isSatisfiedBy(Resource resource, LocalDate atThisDate) {
     return !resource.query().from(this).enforcedInAll(
             Interval.point(atThisDate)).result().isEmpty();
 }
Пример #2
0
 public static ArrayList<Resource> query(Query query) throws ConnectionDisabledException {
   return Resource.query(query, Location.RESOURCE, Location.TABLE);
 }
Пример #3
0
 @Override
 public boolean isSatisfiedBy(Resource resource, LocalDate start, LocalDate end) {
     return !resource.query().from(this).enforcedInAll(
             Interval.range(start, end)).result().isEmpty();
 }