public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } Threshold other = (Threshold)obj; /*return new EqualsBuilder(). * Append(count, other.getCount()). * Append(interval, other.getInterval()). * isEquals();*/ if (count == other.getCount() && interval.Equals(other.getInterval())) { return(true); } else { return(false); } }
public bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } Response other = (Response)obj; /*return new EqualsBuilder(). * Append(user, other.GetUser()). * Append(timestamp, other.GetTimestamp()). * Append(action, other.getAction()). * Append(interval, other.getInterval()). * Append(detectionSystemId, other.GetDetectionSystemId()). * isEquals();*/ if (user.Equals(other.GetUser()) && timestamp.Equals(other.GetTimestamp()) && action.Equals(other.getAction()) && interval.Equals(other.getInterval()) && detectionSystemId.Equals(other.GetDetectionSystemId())) { return(true); } else { return(false); } }