@Test public void testUserRoleListFromOther() { UserRoleList newUserRoleList = new UserRoleList(5); assertEquals(userRoleList, newUserRoleList); assertEquals(userRoleList.hashCode(), newUserRoleList.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getRoleList().size()) .toHashCode(); }
UserRoleList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getRoleList().size()) .toHashCode(); } }
UserRoleList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getRoleList().size()) .toHashCode(); } UserRoleList();  UserRoleList(int initialSize); }
UserRoleList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getRoleList().size()) .toHashCode(); } UserRoleList();  UserRoleList(int initialSize); void setRoleList(List<UserRole> roleList); List<UserRole> getRoleList(); void addRole(UserRole value); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
UserRoleList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getRoleList().size()) .toHashCode(); } UserRoleList();  UserRoleList(int initialSize); void setRoleList(List<UserRole> roleList); List<UserRole> getRoleList(); void addRole(UserRole value); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }