@Override public AdjustableDate build() { return new AdjustableDate( unadjusted, adjustment); }
/** * Obtains an instance with a business day adjustment. * <p> * This creates an adjustable date from the unadjusted date and business day adjustment. * The adjusted date is accessible via {@link #adjusted(ReferenceData)}. * * @param unadjusted the unadjusted date * @param adjustment the business day adjustment to apply to the unadjusted date * @return the adjustable date */ public static AdjustableDate of(LocalDate unadjusted, BusinessDayAdjustment adjustment) { return new AdjustableDate(unadjusted, adjustment); }
/** * Obtains an instance with no business day adjustment. * <p> * This creates an adjustable date from the specified date. * No business day adjustment applies, thus the result of {@link #adjusted(ReferenceData)} * is the specified date. * * @param date the date * @return the adjustable date */ public static AdjustableDate of(LocalDate date) { return new AdjustableDate(date, BusinessDayAdjustment.NONE); }