Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2016-11-09 18:39:26 +0000
committerRyan D. Brooks2020-12-15 22:28:09 +0000
commit0ccb8871c606a5083a1ad9d27df18f77d1f5dd3b (patch)
tree1db49634a2dce92696e4f523dbadfaa0ec55cbd2
parent8335563be6f98815326e59017a7d9f9e6b11b9a3 (diff)
downloadorg.eclipse.osee-0ccb8871c606a5083a1ad9d27df18f77d1f5dd3b.tar.gz
org.eclipse.osee-0ccb8871c606a5083a1ad9d27df18f77d1f5dd3b.tar.xz
org.eclipse.osee-0ccb8871c606a5083a1ad9d27df18f77d1f5dd3b.zip
refactor: Experiment with attribute hash equal
-rw-r--r--plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/OrcsVersionedObjectImpl.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/OrcsVersionedObjectImpl.java b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/OrcsVersionedObjectImpl.java
index f5eeeeb9de9..5ab1332f7e4 100644
--- a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/OrcsVersionedObjectImpl.java
+++ b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/OrcsVersionedObjectImpl.java
@@ -145,38 +145,9 @@ public abstract class OrcsVersionedObjectImpl<T extends Id> implements OrcsData<
}
@Override
- public int hashCode() {
- return getLocalId().hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof OrcsVersionedObjectImpl<?>) {
- OrcsVersionedObjectImpl<?> other = (OrcsVersionedObjectImpl<?>) obj;
- if (!getLocalId().equals(other.getLocalId())) {
- return false;
- }
- if (baseModType != other.baseModType) {
- return false;
- }
- if (baseType.notEqual(other.baseType)) {
- return false;
- }
- if (version == null) {
- return false;
- }
- return true;
- } else if (obj instanceof Id) {
- return ((Id) obj).getId().equals(getLocalId().longValue());
- }
- return false;
- }
-
- @Override
public String toString() {
return "OrcsVersionedObject [" + super.toString() + ", type=" + type + ", baseType=" + baseType + ", modType=" + currentModType + ", previousModType=" + previousModType + ", baseModType=" + baseModType + ", version=" + version + "]";
}
-
@Override
public Integer getLocalId() {
return localId;

Back to the top