/** * Determines whether a Text Flow Target has changed when compared to this history object. * * @param current The current Text Flow Target state. * @return True, if any of the Text Flow Target fields have changed from the state recorded in * this History object. False, otherwise. */ public boolean hasChanged(HTextFlowTarget current) { return !Objects.equal(current.getContents(), this.contents) || !Objects.equal(current.getLastChanged(), this.lastChanged) || !Objects.equal(current.getLastModifiedBy(), this.lastModifiedBy) || !Objects.equal(current.getTranslator(), this.translator) || !Objects.equal(current.getReviewer(), this.reviewer) || !Objects.equal(current.getState(), this.state) || !Objects.equal(current.getTextFlowRevision(), this.textFlowRevision) || !Objects.equal(current.getLastChanged(), this.lastChanged) || !Objects.equal(current.getTextFlow().getId(), this.textFlowTarget.getId()) || !Objects.equal(current.getVersionNum(), this.versionNum); }
public HTextFlowTargetHistory(HTextFlowTarget target) { this.lastChanged = target.getLastChanged(); this.lastModifiedBy = target.getLastModifiedBy(); this.state = target.getState(); this.textFlowRevision = target.getTextFlowRevision(); this.textFlowTarget = target; this.versionNum = target.getVersionNum(); translator = target.getTranslator(); reviewer = target.getReviewer(); this.setContents(target.getContents()); }