Skip to content
Snippets Groups Projects

Created equalSpec methods to compare TML

Merged Minh Hiep Pham requested to merge testCloneArchiterureNode into master
Files
51
@@ -40,6 +40,7 @@
package tmltranslator.modelcompiler;
import java.util.Arrays;
import java.util.Objects;
import java.util.Vector;
/**
@@ -98,4 +99,13 @@ public abstract class ArchUnitMEC {
return stringTypesArr[index];
}
public boolean equalSpec(Object o) {
if (!(o instanceof ArchUnitMEC)) return false;
ArchUnitMEC that = (ArchUnitMEC) o;
return index == that.getIndex() &&
Objects.equals(initCtxRoutine, that.getCtxInitCode()) &&
Objects.equals(ctxCleanupRoutine, that.getCtxCleanupCode()) &&
Objects.equals(localMemoryPointer, getLocalMemoryPointer());
}
} //End of class
Loading