class OrPredicate extends ArrayPredicate {

  @Override
  public boolean evaluate(Resource resource) {
    Predicate[] predicates = getPredicates();
    for (Predicate predicate : predicates) {
      if (predicate.evaluate(resource)) {
        return true;
      }
    }
    return false;
  }

  public  OrPredicate(Predicate... predicates);

}