@Test public void testHashCode() { LinkState linkState1 = new LinkState(0, 0); LinkState linkState2 = new LinkState(0, 0, null); Assert.assertEquals(linkState1.hashCode(), linkState2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(9, 15) .append(getResponseCode()) .append(getLastCheckedTime()) .append(getContextData()) .toHashCode(); }
LinkState { @Override public int hashCode() { return new HashCodeBuilder(9, 15) .append(getResponseCode()) .append(getLastCheckedTime()) .append(getContextData()) .toHashCode(); } }
LinkState { @Override public int hashCode() { return new HashCodeBuilder(9, 15) .append(getResponseCode()) .append(getLastCheckedTime()) .append(getContextData()) .toHashCode(); } LinkState(int responseCode, long lastCheckedTime, Map<String, Object> contextData);  LinkState(int responseCode, long lastCheckedTime); }
LinkState { @Override public int hashCode() { return new HashCodeBuilder(9, 15) .append(getResponseCode()) .append(getLastCheckedTime()) .append(getContextData()) .toHashCode(); } LinkState(int responseCode, long lastCheckedTime, Map<String, Object> contextData);  LinkState(int responseCode, long lastCheckedTime); long getLastCheckedTime(); int getResponseCode(); Map<String, Object> getContextData(); @Override boolean equals(Object object); @Override int hashCode(); }
LinkState { @Override public int hashCode() { return new HashCodeBuilder(9, 15) .append(getResponseCode()) .append(getLastCheckedTime()) .append(getContextData()) .toHashCode(); } LinkState(int responseCode, long lastCheckedTime, Map<String, Object> contextData);  LinkState(int responseCode, long lastCheckedTime); long getLastCheckedTime(); int getResponseCode(); Map<String, Object> getContextData(); @Override boolean equals(Object object); @Override int hashCode();  }