public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
theCause = this.getCause(); toStringBuilder.append("cause", theCause);
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasDerivedFrom)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasDerivedFrom that = ((WasDerivedFrom) object); equalsBuilder.append(this.getEffect(), that.getEffect()); equalsBuilder.append(this.getCause(), that.getCause()); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getTime(), that.getTime()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d) { WasDerivedFrom wdf=newWasDerivedFrom(d.getId(), d.getEffect(), d.getCause(), d.getAccount()); wdf.getAnnotation().addAll(d.getAnnotation()); return wdf; }
ArtifactRef aid2=wasDerivedFrom.getEffect(); Artifact a2=(Artifact)(aid2.getRef()); ArtifactRef aid1=wasDerivedFrom.getCause(); Artifact a1=(Artifact)(aid1.getRef()); Collection<AccountRef> accs=wasDerivedFrom.getAccount(); if ((aid1.equals(d.getCause())) && (aid2.equals(d.getEffect()))) { addNewAccounts(d.getAccount(),accs); result=d;
ArtifactRef fromArtId = dep.getCause(); ArtifactRef toArtId = dep.getEffect();
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d) { WasDerivedFrom wdf=newWasDerivedFrom(d.getId(), newArtifactRef(artifactRegister2.get(((Artifact)d.getEffect().getRef()).getId())), newArtifactRef(artifactRegister2.get(((Artifact)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wdf.getAnnotation().addAll(d.getAnnotation()); return wdf; }