@Override
  public boolean evaluate(Resource resource) {
    Predicate[] predicates = getPredicates();
    for (Predicate predicate : predicates) {
      if (!predicate.evaluate(resource)) {
        return false;
      }
    }
    return true;
  }
Predicate which evaluates to true if all of the predicates in a predicate
array evaluate to true.
ambari-server/src/main/java/org/apache/ambari/server/controller/predicate/AndPredicate.java