@Test public void testHashCode() { assertEquals(m_alarmParameters.hashCode(), m_alarmParameters2.hashCode()); assertNotEquals(m_AlarmParametersDifferentSeverity.hashCode(), m_alarmParameters2.hashCode()); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_lastAlarmText == null) ? 0 : m_lastAlarmText.hashCode()); result = prime * result + ((m_lastPerceivedSeverity == null) ? 0 : m_lastPerceivedSeverity.hashCode()); result = prime * result + ((m_lastStatusChange == null) ? 0 : m_lastStatusChange.hashCode()); result = prime * result + ((m_resource == null) ? 0 : m_resource.hashCode()); result = prime * result + ((m_resourceObjectString == null) ? 0 : m_resourceObjectString.hashCode()); result = prime * result + ((m_resourceNamespaces == null) ? 0 : m_resourceNamespaces.hashCode()); return result; }
AlarmParameters { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_lastAlarmText == null) ? 0 : m_lastAlarmText.hashCode()); result = prime * result + ((m_lastPerceivedSeverity == null) ? 0 : m_lastPerceivedSeverity.hashCode()); result = prime * result + ((m_lastStatusChange == null) ? 0 : m_lastStatusChange.hashCode()); result = prime * result + ((m_resource == null) ? 0 : m_resource.hashCode()); result = prime * result + ((m_resourceObjectString == null) ? 0 : m_resourceObjectString.hashCode()); result = prime * result + ((m_resourceNamespaces == null) ? 0 : m_resourceNamespaces.hashCode()); return result; } }
AlarmParameters { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_lastAlarmText == null) ? 0 : m_lastAlarmText.hashCode()); result = prime * result + ((m_lastPerceivedSeverity == null) ? 0 : m_lastPerceivedSeverity.hashCode()); result = prime * result + ((m_lastStatusChange == null) ? 0 : m_lastStatusChange.hashCode()); result = prime * result + ((m_resource == null) ? 0 : m_resource.hashCode()); result = prime * result + ((m_resourceObjectString == null) ? 0 : m_resourceObjectString.hashCode()); result = prime * result + ((m_resourceNamespaces == null) ? 0 : m_resourceNamespaces.hashCode()); return result; } AlarmParameters(String alarmTypeId, ModelNodeId resource, Timestamp lastStatusChange, AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText, String mountKey, String resourceObjectString); }
AlarmParameters { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_lastAlarmText == null) ? 0 : m_lastAlarmText.hashCode()); result = prime * result + ((m_lastPerceivedSeverity == null) ? 0 : m_lastPerceivedSeverity.hashCode()); result = prime * result + ((m_lastStatusChange == null) ? 0 : m_lastStatusChange.hashCode()); result = prime * result + ((m_resource == null) ? 0 : m_resource.hashCode()); result = prime * result + ((m_resourceObjectString == null) ? 0 : m_resourceObjectString.hashCode()); result = prime * result + ((m_resourceNamespaces == null) ? 0 : m_resourceNamespaces.hashCode()); return result; } AlarmParameters(String alarmTypeId, ModelNodeId resource, Timestamp lastStatusChange, AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText, String mountKey, String resourceObjectString); String getAlarmTypeId(); String getAlarmTypeQualifier(); ModelNodeId getResource(); Timestamp getLastStatusChange(); AlarmSeverity getLastPerceivedSeverity(); String getLastAlarmText(); String getMountKey(); void setMountKey(String mountKey); String getResourceObjectString(); void setResourceObjectString(String resourceObjectString); String getResourceNamespaces(); void setResourceNamespaces(String resourceNamespaces); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
AlarmParameters { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((m_alarmTypeId == null) ? 0 : m_alarmTypeId.hashCode()); result = prime * result + ((m_alarmTypeQualifier == null) ? 0 : m_alarmTypeQualifier.hashCode()); result = prime * result + ((m_lastAlarmText == null) ? 0 : m_lastAlarmText.hashCode()); result = prime * result + ((m_lastPerceivedSeverity == null) ? 0 : m_lastPerceivedSeverity.hashCode()); result = prime * result + ((m_lastStatusChange == null) ? 0 : m_lastStatusChange.hashCode()); result = prime * result + ((m_resource == null) ? 0 : m_resource.hashCode()); result = prime * result + ((m_resourceObjectString == null) ? 0 : m_resourceObjectString.hashCode()); result = prime * result + ((m_resourceNamespaces == null) ? 0 : m_resourceNamespaces.hashCode()); return result; } AlarmParameters(String alarmTypeId, ModelNodeId resource, Timestamp lastStatusChange, AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText);  AlarmParameters(String alarmTypeId, String alarmTypeQualifier, ModelNodeId resource, Timestamp lastStatusChange,
                           AlarmSeverity lastPerceivedSeverity,
                           String lastAlarmText, String mountKey, String resourceObjectString); String getAlarmTypeId(); String getAlarmTypeQualifier(); ModelNodeId getResource(); Timestamp getLastStatusChange(); AlarmSeverity getLastPerceivedSeverity(); String getLastAlarmText(); String getMountKey(); void setMountKey(String mountKey); String getResourceObjectString(); void setResourceObjectString(String resourceObjectString); String getResourceNamespaces(); void setResourceNamespaces(String resourceNamespaces); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }