@Override public YearMonthDateParameterMetadata build() { preBuild(this); return new YearMonthDateParameterMetadata( date, yearMonth, label); }
/** * Obtains an instance using the year-month, specifying the label. * * @param date the date associated with the parameter * @param yearMonth the year-month of the curve node * @param label the label to use * @return the parameter metadata based on the year-month */ public static YearMonthDateParameterMetadata of(LocalDate date, YearMonth yearMonth, String label) { return new YearMonthDateParameterMetadata(date, yearMonth, label); }
/** * Obtains an instance using the year-month. * * @param date the date associated with the parameter * @param yearMonth the year-month of the curve node * @return the parameter metadata based on the year-month */ public static YearMonthDateParameterMetadata of(LocalDate date, YearMonth yearMonth) { ArgChecker.notNull(date, "date"); ArgChecker.notNull(yearMonth, "yearMonth"); return new YearMonthDateParameterMetadata(date, yearMonth, yearMonth.format(FORMATTER)); }