@Override
  public String toString() {
    StringBuilder sb = new StringBuilder();

    for (Predicate predicate : predicates) {

      boolean arrayPredicate = predicate instanceof ArrayPredicate;

      if (sb.length() > 0) {
        sb.append(" ").append(getOperator()).append(" ");
      }

      if (arrayPredicate) {
        sb.append("(").append(predicate).append(")");
      } else {
        sb.append(predicate);
      }
    }
    return sb.toString();
  }
Get the predicates.

@return the predicates
ambari-server/src/main/java/org/apache/ambari/server/controller/predicate/ArrayPredicate.java