本文整理了Java中uk.org.taverna.scufl2.api.core.Workflow.equals()
方法的一些代码示例,展示了Workflow.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workflow.equals()
方法的具体详情如下:
包路径:uk.org.taverna.scufl2.api.core.Workflow
类名称:Workflow
方法名:equals
暂无
代码示例来源:origin: uk.org.taverna.scufl2/scufl2-validation-correctness
if ((parent == null) || !parent.equals(blockParent)) {
listener.outOfScopeValue(bean, "block", block);
if ((parent == null) || !parent.equals(untilFinishedParent)) {
listener.outOfScopeValue(bean, "untilFinished", untilFinished);
代码示例来源:origin: uk.org.taverna.scufl2/scufl2-validation-correctness
Workflow sendsToWorkflow = findAncestral((Child) sendsTo,
Workflow.class);
if ((parent == null) || !parent.equals(sendsToWorkflow)) {
listener.outOfScopeValue(bean, "sendsTo", sendsTo);
Workflow receivesFromWorkflow = findAncestral((Child) receivesFrom,
Workflow.class);
if ((parent == null) || !parent.equals(receivesFromWorkflow)) {
listener.outOfScopeValue(bean, "receivesFrom", receivesFrom);
代码示例来源:origin: uk.org.taverna.scufl2/scufl2-api
return false;
} else if (!getParent().equals(other.getParent())) {
return false;
代码示例来源:origin: uk.org.taverna.scufl2/scufl2-api
@Test
public void workflowsNotEqualsUnlessOrphans() {
Workflow wf1 = new Workflow();
Workflow wf2 = new Workflow();
wf1.setName("fred");
wf2.setName("fred");
// No parents, so they are equal
assertEquals(wf1, wf2);
WorkflowBundle wb1 = new WorkflowBundle();
WorkflowBundle wb2 = new WorkflowBundle();
// Make them look "equal"
wb2.setName(wb1.getName());
wb2.setGlobalBaseURI(wb1.getGlobalBaseURI());
assertFalse(wb1.equals(wb2));
wf1.setParent(wb1);
wf2.setParent(wb2);
assertFalse(wf1.equals(wf2));
wf1.setParent(null);
assertFalse(wf1.equals(wf2));
assertFalse(wf2.equals(wf1));
wf2.setParent(null);
assertTrue(wf1.equals(wf2));
}
内容来源于网络,如有侵权,请联系作者删除!