Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(Object obj)
- {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- final KeyValuePair other = (KeyValuePair) obj;
- if (key == null)
- {
- if (other.key != null)
- return false;
- } else if (!key.equals(other.key))
- return false;
- if (value == null)
- {
- if (other.value != null)
- return false;
- } else if (!value.equals(other.value))
- return false;
- return true;
- }
Add Comment
Please, Sign In to add comment