/* (non-Javadoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((indexFieldMap == null) ? 0 : indexFieldMap.hashCode()); result = prime * result + ((sensorParams == null) ? 0 : Arrays.deepHashCode(sensorParams.keys())); return result; }
/* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; HTMSensor<?> other = (HTMSensor<?>) 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.equals(sensorParams.keys(), other.sensorParams.keys())) return false; return true; }