/** * Create an instance of {@link DateRangeDto } * */ public DateRangeDto createDateRangeDto() { return new DateRangeDto(); }
public static DateRangeDto.Builder<Void> copyExcept(final DateRangeDto _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof DateRangeDto) { final DateRangeDto copy = ((DateRangeDto) draftCopy); 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); } else { if (lowerDateShouldBeCopiedAndSet == Boolean.FALSE) { if (upperDateShouldBeCopiedAndSet == Boolean.TRUE) { Date sourceUpperDate; sourceUpperDate = this.getUpperDate(); Date copyUpperDate = ((Date) strategy.copy(LocatorUtils.property(locator, "upperDate", sourceUpperDate), sourceUpperDate, (this.upperDate!= null))); copy.setUpperDate(copyUpperDate); } else { if (upperDateShouldBeCopiedAndSet == Boolean.FALSE) {
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 Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
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; }
public static<_B >DateRangeDto.Builder<_B> copyOf(final DateRangeDto _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final DateRangeDto.Builder<_B> _newBuilder = new DateRangeDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; }
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 static<_B >DateRangeDto.Builder<_B> copyOf(final DateRangeDto _other) { final DateRangeDto.Builder<_B> _newBuilder = new DateRangeDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; }
public Object createNewInstance() { return new DateRangeDto(); }
public static DateRangeDto.Builder<Void> copyOnly(final DateRangeDto _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); }
@Override public DateRangeDto build() { if (_storedValue == null) { return this.init(new DateRangeDto()); } else { return ((DateRangeDto) _storedValue); } }