示例#1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }

            DetectionPoint other = (DetectionPoint)obj;

            /*return new EqualsBuilder().
             *              Append(id, other.getId()).
             *              Append(threshold, other.getThreshold()).
             *              Append(responses, other.getResponses()).
             *              isEquals();*/
            if (id.Equals(other.getId()) &&
                threshold.Equals(other.getThreshold()) &&
                responses.Equals(other.getResponses()))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }