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