mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-15 11:07:57 +01:00
Bug WISE-421 #resolve
This commit is contained in:
parent
c7c8a5ef50
commit
2e0d470ecf
@ -100,4 +100,28 @@ public class Collaboration {
|
|||||||
return this.getRole().ordinal() <= role.ordinal();
|
return this.getRole().ordinal() <= role.ordinal();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
||||||
|
Collaboration that = (Collaboration) o;
|
||||||
|
|
||||||
|
if (id != that.id) return false;
|
||||||
|
if (collaborator != null ? !collaborator.equals(that.collaborator) : that.collaborator != null) return false;
|
||||||
|
if (mindMap != null ? !mindMap.equals(that.mindMap) : that.mindMap != null) return false;
|
||||||
|
if (role != that.role) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = (int) (id ^ (id >>> 32));
|
||||||
|
result = 31 * result + (role != null ? role.hashCode() : 0);
|
||||||
|
result = 31 * result + (mindMap != null ? mindMap.hashCode() : 0);
|
||||||
|
result = 31 * result + (collaborator != null ? collaborator.hashCode() : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user