@Override
    public int hashCode() {
      int result = (int) (Id ^ (Id >>> 32));
      result = 31 * result + (Name != null ? Name.hashCode() : 0);
      result = 31 * result + (State != null ? State.hashCode() : 0);
      return result;
    }
The {@link AlertDefinitionSummary} is a simple data structure for keeping
track of each alert definition's summary information as the result set is
being iterated over.
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/AlertSummaryGroupedRenderer.java