@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + (enabled ? 1231 : 1237);
   result = prime * result + (rulesApproved ? 1231 : 1237);
   result = prime * result + ((userEmail == null) ? 0 : userEmail.hashCode());
   result = prime * result + ((userForname == null) ? 0 : userForname.hashCode());
   result = prime * result + ((userRoles == null) ? 0 : userRoles.hashCode());
   result = prime * result + ((username == null) ? 0 : username.hashCode());
   return result;
 }
Exemple #2
0
 @Override
 public int hashCode() {
   int result;
   long temp;
   result = id != null ? id.hashCode() : 0;
   result = 31 * result + (username != null ? username.hashCode() : 0);
   result = 31 * result + (fullName != null ? fullName.hashCode() : 0);
   result = 31 * result + (password != null ? password.hashCode() : 0);
   result = 31 * result + (isEnabled ? 1 : 0);
   result = 31 * result + (isConfirmed ? 1 : 0);
   result = 31 * result + (isNonReadOnly ? 1 : 0);
   result = 31 * result + (creationDate != null ? creationDate.hashCode() : 0);
   result = 31 * result + (email != null ? email.hashCode() : 0);
   result = 31 * result + (roles != null ? roles.hashCode() : 0);
   result = 31 * result + (country != null ? country.hashCode() : 0);
   result = 31 * result + (imageUrl != null ? imageUrl.hashCode() : 0);
   temp = Double.doubleToLongBits(rating);
   result = 31 * result + (int) (temp ^ (temp >>> 32));
   result = 31 * result + tasksSolved;
   result = 31 * result + (signInProvider != null ? signInProvider.hashCode() : 0);
   result = 31 * result + (tokenConfirmation != null ? tokenConfirmation.hashCode() : 0);
   result = 31 * result + (lastVisit != null ? lastVisit.hashCode() : 0);
   return result;
 }