@Test public void testUserPermissionsListFromOther() { UserPermissionsList newUserPermissionsList = new UserPermissionsList(5); assertEquals(userPermissionsList, newUserPermissionsList); assertEquals(userPermissionsList.hashCode(), newUserPermissionsList.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getPermissionsList().size()) .toHashCode(); }
UserPermissionsList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getPermissionsList().size()) .toHashCode(); } }
UserPermissionsList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getPermissionsList().size()) .toHashCode(); } UserPermissionsList();  UserPermissionsList(int initialSize); }
UserPermissionsList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getPermissionsList().size()) .toHashCode(); } UserPermissionsList();  UserPermissionsList(int initialSize); List<UserPermissions> getPermissionsList(); void setPermissionsList(List<UserPermissions> permissionsList); void addPermissions(UserPermissions value); @Override boolean equals(Object obj); @Override int hashCode(); }
UserPermissionsList { @Override public int hashCode() { return new HashCodeBuilder(1, 31) .append(getPermissionsList().size()) .toHashCode(); } UserPermissionsList();  UserPermissionsList(int initialSize); List<UserPermissions> getPermissionsList(); void setPermissionsList(List<UserPermissions> permissionsList); void addPermissions(UserPermissions value); @Override boolean equals(Object obj); @Override int hashCode();  }