@Override
  public boolean equals(Object obj) {
    if (null == obj || !obj.getClass().equals(AlertDefinition.class)) {
      return false;
    }

    return name.equals(((AlertDefinition) obj).name);
  }
Gets equality based on name only.

@see #deeplyEquals(Object)
ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinition.java