@Override
  public boolean equals(Object other) {
    if (other == this) {
      return true;
    }
    if (other == null) {
      return false;
    }
    if (!(other instanceof AlertLevel)) {
      return false;
    }
    final AlertLevel that = (AlertLevel) other;

    if (severity != that.severity) {
      return false;
    }
    return name == null || name.equals(that.name);
  }
Indicates whether some other object is "equal to" this one.

@param other the reference object with which to compare.
@return true if this object is the same as the obj argument; false otherwise.
geode-core/src/main/java/org/apache/geode/admin/AlertLevel.java