示例#1
0
        public override bool Equals(Object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            HTMSensor <T> other = (HTMSensor <T>)obj;

            if (indexFieldMap == null)
            {
                if (other.indexFieldMap != null)
                {
                    return(false);
                }
            }
            else if (!indexFieldMap.Equals(other.indexFieldMap))
            {
                return(false);
            }
            if (sensorParams == null)
            {
                if (other.sensorParams != null)
                {
                    return(false);
                }
            }
            else if (!Arrays.AreEqual(sensorParams.GetKeys(), other.sensorParams.GetKeys()))
            {
                return(false);
            }
            return(true);
        }
示例#2
0
 public InputMap(HTMSensor <T> parent)
 {
     _parent = parent;
 }