diff options
author | David W. Miller | 2016-07-18 16:36:33 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2016-08-31 16:17:38 +0000 |
commit | f253246dbb5e4bae6dd3e2eff9208f423a92ca0d (patch) | |
tree | e634d05b4070920a370240e4e15a8842107aa42b /plugins/org.eclipse.osee.framework.core.model | |
parent | 2d7d679311fc48549664d9efd8d2497ec6fc1b11 (diff) | |
download | org.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.tar.gz org.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.tar.xz org.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.zip |
refinement[ats_ATS292636]: Refactor LoadDeltasBetweenBranches
Change-Id: I9dd4843d2e0f1eba0e1a0f481b16fd4ab076ec72
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.model')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/change/ChangeItem.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/change/ChangeItem.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/change/ChangeItem.java index 1ce905d062b..ef9977b11ef 100644 --- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/change/ChangeItem.java +++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/change/ChangeItem.java @@ -170,6 +170,57 @@ public class ChangeItem implements Comparable<ChangeItem> { return true; } + public boolean totalEquals(ChangeItem other) { + if (!this.equals(other)) { + return false; + } + if (!this.ignoreType.equals(other.ignoreType)) { + return false; + } + if (!this.changeType.equals(other.changeType)) { + return false; + } + if (!(this.synthetic == other.synthetic)) { + return false; + } + if (this.getArtIdB() != other.getArtIdB()) { + return false; + } + if (baselineVersion == null) { + if (other.baselineVersion != null) { + return false; + } + } + if (!baselineVersion.equals(other.baselineVersion)) { + return false; + } + if (destinationVersion == null) { + if (other.destinationVersion != null) { + return false; + } + } + if (!destinationVersion.equals(other.destinationVersion)) { + return false; + } + if (netChange == null) { + if (other.netChange != null) { + return false; + } + } + if (!netChange.equals(other.netChange)) { + return false; + } + if (firstNonCurrentChange == null) { + if (other.firstNonCurrentChange != null) { + return false; + } + } + if (!firstNonCurrentChange.equals(other.firstNonCurrentChange)) { + return false; + } + return true; + } + @Override public int compareTo(ChangeItem obj) { return itemId - obj.itemId; |