@Override
  public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + (value != null ? value.hashCode() : 0);
    return result;
  }
Predicate that compares a given value to a {@link Resource} property.
ambari-server/src/main/java/org/apache/ambari/server/controller/predicate/ComparisonPredicate.java