@Test public void testHashCode() { assertEquals(m_alarmInfo2.hashCode(), m_alarmInfo.hashCode()); assertNotEquals(m_alarmInfoWithDifferentRaisedTime.hashCode(), m_alarmInfo2.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmText == null) ? 0 : m_alarmText.hashCode()); result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_time == null) ? 0 : m_time.hashCode()); result = prime * result + ((m_severity == null) ? 0 : m_severity.hashCode()); result = prime * result + ((m_sourceObject == null) ? 0 : m_sourceObject.hashCode()); result = prime * result + ((m_deviceName == null) ? 0 : m_deviceName.hashCode()); result = prime * result + ((m_sourceObjectString == null) ? 0 : m_sourceObjectString.hashCode()); return result; }
AlarmInfo { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmText == null) ? 0 : m_alarmText.hashCode()); result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_time == null) ? 0 : m_time.hashCode()); result = prime * result + ((m_severity == null) ? 0 : m_severity.hashCode()); result = prime * result + ((m_sourceObject == null) ? 0 : m_sourceObject.hashCode()); result = prime * result + ((m_deviceName == null) ? 0 : m_deviceName.hashCode()); result = prime * result + ((m_sourceObjectString == null) ? 0 : m_sourceObjectString.hashCode()); return result; } }
AlarmInfo { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmText == null) ? 0 : m_alarmText.hashCode()); result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_time == null) ? 0 : m_time.hashCode()); result = prime * result + ((m_severity == null) ? 0 : m_severity.hashCode()); result = prime * result + ((m_sourceObject == null) ? 0 : m_sourceObject.hashCode()); result = prime * result + ((m_deviceName == null) ? 0 : m_deviceName.hashCode()); result = prime * result + ((m_sourceObjectString == null) ? 0 : m_sourceObjectString.hashCode()); return result; } AlarmInfo(String alarmTypeId, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, String sourceObjectNamespaces,
                     Timestamp eventTime, AlarmSeverity severity, String alarmText, String deviceName, String resourceString);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName, String sourceObjectString); }
AlarmInfo { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmText == null) ? 0 : m_alarmText.hashCode()); result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_time == null) ? 0 : m_time.hashCode()); result = prime * result + ((m_severity == null) ? 0 : m_severity.hashCode()); result = prime * result + ((m_sourceObject == null) ? 0 : m_sourceObject.hashCode()); result = prime * result + ((m_deviceName == null) ? 0 : m_deviceName.hashCode()); result = prime * result + ((m_sourceObjectString == null) ? 0 : m_sourceObjectString.hashCode()); return result; } AlarmInfo(String alarmTypeId, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, String sourceObjectNamespaces,
                     Timestamp eventTime, AlarmSeverity severity, String alarmText, String deviceName, String resourceString);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName, String sourceObjectString); String getAlarmTypeId(); String getAlarmTypeQualifier(); ModelNodeId getSourceObject(); void setSourceObject(ModelNodeId sourceObject); Timestamp getTime(); AlarmSeverity getSeverity(); String getAlarmText(); String getDeviceName(); String getSourceObjectString(); void setSourceObjectString(String sourceObjectString); String getSourceObjectNamespaces(); void setSourceObjectNamespaces(String sourceObjectNamespaces); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
AlarmInfo { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmText == null) ? 0 : m_alarmText.hashCode()); result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_time == null) ? 0 : m_time.hashCode()); result = prime * result + ((m_severity == null) ? 0 : m_severity.hashCode()); result = prime * result + ((m_sourceObject == null) ? 0 : m_sourceObject.hashCode()); result = prime * result + ((m_deviceName == null) ? 0 : m_deviceName.hashCode()); result = prime * result + ((m_sourceObjectString == null) ? 0 : m_sourceObjectString.hashCode()); return result; } AlarmInfo(String alarmTypeId, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, String sourceObjectNamespaces,
                     Timestamp eventTime, AlarmSeverity severity, String alarmText, String deviceName, String resourceString);  AlarmInfo(String alarmTypeId, String alarmTypeQualifier, ModelNodeId sourceObject, Timestamp time, AlarmSeverity severity,
                     String alarmText, String deviceName, String sourceObjectString); String getAlarmTypeId(); String getAlarmTypeQualifier(); ModelNodeId getSourceObject(); void setSourceObject(ModelNodeId sourceObject); Timestamp getTime(); AlarmSeverity getSeverity(); String getAlarmText(); String getDeviceName(); String getSourceObjectString(); void setSourceObjectString(String sourceObjectString); String getSourceObjectNamespaces(); void setSourceObjectNamespaces(String sourceObjectNamespaces); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }