@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; }