- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof ProfileDetail)) {
- return false;
- }
- ProfileDetail that = (ProfileDetail) o;
- return Objects.equals(firstName, that.firstName) &&
- Objects.equals(lastName, that.lastName) &&
- Objects.equals(middleName, that.middleName) &&
- Objects.equals(email, that.email) &&
- Objects.equals(loginId, that.loginId) &&
- Objects.equals(loginPassword, that.loginPassword);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(firstName, lastName, middleName, email, loginId, loginPassword);
- }