Created
September 26, 2012 09:38
-
-
Save rbe/3787043 to your computer and use it in GitHub Desktop.
hashCode Method of User Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public int hashCode() { | |
int result = username.hashCode(); | |
result = 31 * result + (emailAddress != null ? emailAddress.hashCode() : 0); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment