public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getRole()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getStartTime()); hashCodeBuilder.append(this.getEndTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasControlledBy)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasControlledBy that = ((WasControlledBy) object); equalsBuilder.append(this.getEffect(), that.getEffect()); equalsBuilder.append(this.getRole(), that.getRole()); equalsBuilder.append(this.getCause(), that.getCause()); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getStartTime(), that.getStartTime()); equalsBuilder.append(this.getEndTime(), that.getEndTime()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
theAccount = this.getAccount(); toStringBuilder.append("account", theAccount);
Agent a=(Agent)(aid.getRef()); Role r=wasControlledBy.getRole(); Collection<AccountRef> accs=wasControlledBy.getAccount(); && r.equals(u.getRole())) { addNewAccounts(u.getAccount(),accs); result=u; found=true;
public WasControlledBy newWasControlledBy(WasControlledBy c) { WasControlledBy wcb=newWasControlledBy(c.getEffect(), c.getRole(), c.getCause(), c.getAccount()); wcb.setId(c.getId()); wcb.getAnnotation().addAll(c.getAnnotation()); return wcb; }
public WasControlledBy newWasControlledBy(WasControlledBy d) { WasControlledBy wcb=newWasControlledBy(d.getId(), newProcessRef(processRegister2.get(((Process)d.getEffect().getRef()).getId())), newRole(d.getRole()), newAgentRef(agentRegister2.get(((Agent)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wcb.getAnnotation().addAll(d.getAnnotation()); if (d.getStartTime()!=null) wcb.setStartTime(newOTime(d.getStartTime())); if (d.getEndTime()!=null) wcb.setEndTime(newOTime(d.getEndTime())); return wcb; }