/** * 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; }
/** * Adjusts the date as necessary if it is not a business day. * * <p>If the date is a business day it will be returned unaltered. If the date is not a business * day, the convention will be applied. * * @param date the date to adjust * @return the adjusted temporal */ @Override public LocalDate adjust(LocalDate date) { ArgChecker.notNull(date, "date"); return convention.adjust(date, calendar); }