@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof UnaryPredicate)) return false;

    UnaryPredicate that = (UnaryPredicate) o;

    return predicate.equals(that.predicate);
  }
Predicate that operates on one other predicate.
ambari-server/src/main/java/org/apache/ambari/server/controller/predicate/UnaryPredicate.java