/** * Obtains an instance from the day-of-week. * <p> * This convention will adjust the input date to the specified day-of-week. * It is intended for use with periods that are a multiple of weeks. * <p> * In {@code adjust()}, if the input date is not the required day-of-week, * then the next occurrence of the day-of-week is selected, up to 6 days later. * <p> * In {@code next()}, the day-of-week is selected after the frequency is added. * If the calculated date is not the required day-of-week, then the next occurrence * of the day-of-week is selected, up to 6 days later. * <p> * In {@code previous()}, the day-of-week is selected after the frequency is subtracted. * If the calculated date is not the required day-of-week, then the previous occurrence * of the day-of-week is selected, up to 6 days earlier. * * @param dayOfWeek the day-of-week * @return the roll convention */ public static RollConvention ofDayOfWeek(DayOfWeek dayOfWeek) { return Dow.of(dayOfWeek); }
private Object readResolve() { return Dow.of(day); }