@Override public boolean equals(Object obj) { if (obj instanceof User) { User that = (User) obj; return Objects.equal(email, that.email); } return false; }
@Override public int hashCode() { return Objects.hashCode(email); }