@Override
  public boolean equals(Object object) {
    if (this == object) {
      return true;
    }

    if (object == null || getClass() != object.getClass()) {
      return false;
    }

    AlertCurrentEntity that = (AlertCurrentEntity) object;
    EqualsBuilder equalsBuilder = new EqualsBuilder();

    equalsBuilder.append(alertId, that.alertId);
    equalsBuilder.append(alertHistory, that.alertHistory);
    return equalsBuilder.isEquals();
  }
Gets the equality to another alert based on the following criteria:
<ul>
<li>{@link #alertId}
<li>{@link #alertHistory}
</ul>
<p/>
{@inheritDoc}
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java