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); } }