/** * Obtains an instance from the day-of-month. * <p> * This convention will adjust the input date to the specified day-of-month. * The year and month of the result date will be the same as the input date. * It is intended for use with periods that are a multiple of months. * <p> * If the month being adjusted has a length less than the requested day-of-month * then the last valid day-of-month will be chosen. As such, passing 31 to this * method is equivalent to selecting the end-of-month convention. * * @param dayOfMonth the day-of-month, from 1 to 31 * @return the roll convention * @throws IllegalArgumentException if the day-of-month is invalid */ public static RollConvention ofDayOfMonth(int dayOfMonth) { return Dom.of(dayOfMonth); }
private Object readResolve() { return Dom.of(day); }