Guest User

Untitled

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