public boolean equals(Object anObject) {

    if (this == anObject) {
      return true;
    }
    if (anObject instanceof NotificationKey) {
      NotificationKey anotherFedComp = (NotificationKey) anObject;
      return anotherFedComp.objectName.equals(objectName)
          && anotherFedComp.currentTime == currentTime;
    }

    return false;
  }
This class is used as a key for Notification region Only using ObjectName as key will overwrite
entries if put rate for notification is high.
geode-core/src/main/java/org/apache/geode/management/internal/NotificationKey.java