Skip to content

Instantly share code, notes, and snippets.

@rbe
Created September 26, 2012 09:31
Show Gist options
  • Save rbe/3787021 to your computer and use it in GitHub Desktop.
Save rbe/3787021 to your computer and use it in GitHub Desktop.
equals Method of User Entity
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
OdiseeUser that = (OdiseeUser) o;
if (emailAddress != null ? !emailAddress.equals(that.emailAddress) : that.emailAddress != null) return false;
if (id != null ? !id.equals(that.id) : that.id != null) return false;
if (!username.equals(that.username)) return false;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment