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