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

    ComparisonPredicate that = (ComparisonPredicate) o;

    return !(value != null ? !value.equals(that.value) : that.value != null);
  }
Predicate that compares a given value to a {@link Resource} property.
ambari-server/src/main/java/org/apache/ambari/server/controller/predicate/ComparisonPredicate.java