/** * Obtains an instance using the tenor, specifying the label. * * @param date the date associated with the parameter * @param tenor the tenor associated with the parameter * @param label the label to use * @return the parameter metadata based on the tenor */ public static TenorDateParameterMetadata of(LocalDate date, Tenor tenor, String label) { return new TenorDateParameterMetadata(date, tenor, label); }
@Override public TenorDateParameterMetadata build() { preBuild(this); return new TenorDateParameterMetadata( date, tenor, label); }
/** * Obtains an instance using the tenor. * * @param date the date associated with the parameter * @param tenor the tenor associated with the parameter * @return the parameter metadata based on the tenor */ public static TenorDateParameterMetadata of(LocalDate date, Tenor tenor) { ArgChecker.notNull(date, "date"); ArgChecker.notNull(tenor, "tenor"); return new TenorDateParameterMetadata(date, tenor, tenor.toString()); }