/** * Returns a string describing the adjustment. * * @return the descriptive string */ @Override public String toString() { if (this.equals(NONE)) { return convention.toString(); } return convention + " using calendar " + calendar.getName(); }
/** * Returns a string describing the adjustment. * * @return the descriptive string */ @Override public String toString() { StringBuilder buf = new StringBuilder(64); buf.append(tenor); if (additionConvention != PeriodAdditionConventions.NONE) { buf.append(" with ").append(additionConvention); } if (adjustment.equals(BusinessDayAdjustment.NONE) == false) { buf.append(" then apply ").append(adjustment); } return buf.toString(); }
/** * Returns a string describing the adjustment. * * @return the descriptive string */ @Override public String toString() { StringBuilder buf = new StringBuilder(64); buf.append(period); if (additionConvention != PeriodAdditionConventions.NONE) { buf.append(" with ").append(additionConvention); } if (adjustment.equals(BusinessDayAdjustment.NONE) == false) { buf.append(" then apply ").append(adjustment); } return buf.toString(); }
/** * Returns a string describing the adjustable date. * * @return the descriptive string */ @Override public String toString() { if (adjustment.equals(BusinessDayAdjustment.NONE)) { return unadjusted.toString(); } return new StringBuilder(64) .append(unadjusted) .append(" adjusted by ") .append(adjustment).toString(); }
private LocalDate calculatedUnadjustedStartDate(ReferenceData refData) { // change date if // reference data is available // and explicit start adjustment must be NONE or roll convention is EOM // and either // numeric roll convention and day-of-month actually differs // or // StandardDayConvention is used and the day is not a valid roll date if (refData != null && rollConvention != null && (BusinessDayAdjustment.NONE.equals(startDateBusinessDayAdjustment) || rollConvention == RollConventions.EOM)) { return calculatedUnadjustedDateFromAdjusted(startDate, rollConvention, businessDayAdjustment, refData); } return startDate; }
/** * Returns a string describing the adjustment. * * @return the descriptive string */ @Override public String toString() { StringBuilder buf = new StringBuilder(64); buf.append(days); if (calendar == HolidayCalendarIds.NO_HOLIDAYS) { buf.append(" calendar day"); if (days != 1) { buf.append("s"); } } else { buf.append(" business day"); if (days != 1) { buf.append("s"); } buf.append(" using calendar ").append(calendar.getName()); } if (adjustment.equals(BusinessDayAdjustment.NONE) == false) { buf.append(" then apply ").append(adjustment); } return buf.toString(); }
parseBusinessDayAdjustment(row, leg, END_DATE_CNV_FIELD, END_DATE_CAL_FIELD); builder.businessDayAdjustment(dateAdj); if (startDateAdj.isPresent() && !startDateAdj.get().equals(dateAdj)) { builder.startDateBusinessDayAdjustment(startDateAdj.get()); if (endDateAdj.isPresent() && !endDateAdj.get().equals(dateAdj)) { builder.endDateBusinessDayAdjustment(endDateAdj.get());
.orElseGet(() -> document.parseAdjustedRelativeDateOffset(calcPeriodDatesEl.getChild("relativeEffectiveDate"))); accrualScheduleBuilder.startDate(startDate.getUnadjusted()); if (!bda.equals(startDate.getAdjustment())) { accrualScheduleBuilder.startDateBusinessDayAdjustment(startDate.getAdjustment()); .orElseGet(() -> document.parseAdjustedRelativeDateOffset(calcPeriodDatesEl.getChild("relativeTerminationDate"))); accrualScheduleBuilder.endDate(endDate.getUnadjusted()); if (!bda.equals(endDate.getAdjustment())) { accrualScheduleBuilder.endDateBusinessDayAdjustment(endDate.getAdjustment());