Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid W. Miller2016-07-18 16:36:33 +0000
committerRyan D. Brooks2016-08-31 16:17:38 +0000
commitf253246dbb5e4bae6dd3e2eff9208f423a92ca0d (patch)
treee634d05b4070920a370240e4e15a8842107aa42b /plugins/org.eclipse.osee.framework.core.model
parent2d7d679311fc48549664d9efd8d2497ec6fc1b11 (diff)
downloadorg.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.tar.gz
org.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.tar.xz
org.eclipse.osee-f253246dbb5e4bae6dd3e2eff9208f423a92ca0d.zip
refinement[ats_ATS292636]: Refactor LoadDeltasBetweenBranches
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.java51
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;

Back to the top