public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { Date theLowerDate; theLowerDate = this.getLowerDate(); strategy.appendField(locator, this, "lowerDate", buffer, theLowerDate, (this.lowerDate!= null)); } { Date theUpperDate; theUpperDate = this.getUpperDate(); strategy.appendField(locator, this, "upperDate", buffer, theUpperDate, (this.upperDate!= null)); } return buffer; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final DateRangeDto that = ((DateRangeDto) object); { Date lhsLowerDate; lhsLowerDate = this.getLowerDate(); Date rhsLowerDate; rhsLowerDate = that.getLowerDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "lowerDate", lhsLowerDate), LocatorUtils.property(thatLocator, "lowerDate", rhsLowerDate), lhsLowerDate, rhsLowerDate, (this.lowerDate!= null), (that.lowerDate!= null))) { return false; } } { Date lhsUpperDate; lhsUpperDate = this.getUpperDate(); Date rhsUpperDate; rhsUpperDate = that.getUpperDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "upperDate", lhsUpperDate), LocatorUtils.property(thatLocator, "upperDate", rhsUpperDate), lhsUpperDate, rhsUpperDate, (this.upperDate!= null), (that.upperDate!= null))) { return false; } } return true; }
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { Date theLowerDate; theLowerDate = this.getLowerDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lowerDate", theLowerDate), currentHashCode, theLowerDate, (this.lowerDate!= null)); } { Date theUpperDate; theUpperDate = this.getUpperDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "upperDate", theUpperDate), currentHashCode, theUpperDate, (this.upperDate!= null)); } return currentHashCode; }
if (lowerDateShouldBeCopiedAndSet == Boolean.TRUE) { Date sourceLowerDate; sourceLowerDate = this.getLowerDate(); Date copyLowerDate = ((Date) strategy.copy(LocatorUtils.property(locator, "lowerDate", sourceLowerDate), sourceLowerDate, (this.lowerDate!= null))); copy.setLowerDate(copyLowerDate);