@Test public void testHashCode() { LockKey equal1 = new LockKey("p1", "b", true); LockKey equal2 = new LockKey("p1", "b", true); assertHashCodeContract(equal1, equal2); }
@Override public int hashCode() { return new HashCodeBuilder() .append(projectName) .append(branchName) .append(central) .toHashCode(); }
LockKey { @Override public int hashCode() { return new HashCodeBuilder() .append(projectName) .append(branchName) .append(central) .toHashCode(); } }
LockKey { @Override public int hashCode() { return new HashCodeBuilder() .append(projectName) .append(branchName) .append(central) .toHashCode(); } LockKey(String projectName, String branchName, boolean central); }
LockKey { @Override public int hashCode() { return new HashCodeBuilder() .append(projectName) .append(branchName) .append(central) .toHashCode(); } LockKey(String projectName, String branchName, boolean central); @Override boolean equals(Object o); @Override int hashCode(); }
LockKey { @Override public int hashCode() { return new HashCodeBuilder() .append(projectName) .append(branchName) .append(central) .toHashCode(); } LockKey(String projectName, String branchName, boolean central); @Override boolean equals(Object o); @Override int hashCode();  }