Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public boolean equals(Object obj) {
  2. if (this == obj)
  3. return true;
  4. if (obj == null)
  5. return false;
  6. if (getClass() != obj.getClass())
  7. return false;
  8. ChefVO other = (ChefVO) obj;
  9. if (colorApron == null) {
  10. if (other.colorApron != null)
  11. return false;
  12. } else if (!colorApron.equals(other.colorApron))
  13. return false;
  14. if (firstName == null) {
  15. if (other.firstName != null)
  16. return false;
  17. } else if (!firstName.equals(other.firstName))
  18. return false;
  19. if (lastName == null) {
  20. if (other.lastName != null)
  21. return false;
  22. } else if (!lastName.equals(other.lastName))
  23. return false;
  24. return true;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement