@Test public void testHashCode() { UserPrincipal testUserPrincipal1 = createTestUserPrincipal(TEST_ID, TEST_USERNAME); UserPrincipal testUserPrincipal2 = createTestUserPrincipal(TEST_ID, TEST_USERNAME); assertEquals(testUserPrincipal1.hashCode(), testUserPrincipal2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder().append(user.getId()).toHashCode(); }
UserPrincipal extends AbstractPrincipal { @Override public int hashCode() { return new HashCodeBuilder().append(user.getId()).toHashCode(); } }
UserPrincipal extends AbstractPrincipal { @Override public int hashCode() { return new HashCodeBuilder().append(user.getId()).toHashCode(); } UserPrincipal(PLCUser user); }
UserPrincipal extends AbstractPrincipal { @Override public int hashCode() { return new HashCodeBuilder().append(user.getId()).toHashCode(); } UserPrincipal(PLCUser user); PLCUser getUser(); @Override String getName(); @Override int hashCode(); @Override boolean equals(Object obj); }
UserPrincipal extends AbstractPrincipal { @Override public int hashCode() { return new HashCodeBuilder().append(user.getId()).toHashCode(); } UserPrincipal(PLCUser user); PLCUser getUser(); @Override String getName(); @Override int hashCode(); @Override boolean equals(Object obj);  }