/** @param element */ public FlatEntryEndNode(FlatReportElement element) { super(element.getDisplayOrder()); hours = element.getTotalHours(); turnOver = element.getTotalTurnOver(); this.columnValues = new Serializable[] { element.getComment(), element.getTotalHours(), element.getTotalTurnOver() }; }
/** @see java.lang.Object#equals(Object) */ public boolean equals(Object object) { if (!(object instanceof FlatReportElement)) { return false; } FlatReportElement rhs = (FlatReportElement) object; return new EqualsBuilder() .append(this.assignmentId, rhs.getAssignmentId()) .append(this.dayDate, rhs.getDayDate()) .append(this.entryDate, rhs.getEntryDate()) .append(this.totalHours, rhs.getTotalHours()) .append(this.totalTurnOver, rhs.getTotalTurnOver()) .append(this.displayOrder, rhs.getDisplayOrder()) .isEquals(); }