@Override
  public boolean equals(Object obj) {
    if (obj == this) {
      return true;
    } else if (obj == null) {
      return false;
    } else if ((obj instanceof Predicate) && (hashCode() == obj.hashCode())) {
      Predicate p = (Predicate) obj;
      return (name == null) ? (p.name == null) : name.equals(p.name);
    } else {
      return false;
    }
  }
Serialize this {@link Predicate} to a JSON-formatted {@link String}

@return a JSON-formatted {@link String}
ambari-server/src/main/java/org/apache/ambari/server/collections/Predicate.java