/** * Obtains an instance using the date, specifying the label. * * @param date the date associated with the parameter * @param label the label to use * @return the parameter metadata based on the date and label */ public static LabelDateParameterMetadata of(LocalDate date, String label) { return new LabelDateParameterMetadata(date, label); }
@Override public LabelDateParameterMetadata build() { return new LabelDateParameterMetadata( date, label); }
/** * Obtains an instance using the date. * * @param date the date associated with the parameter * @return the parameter metadata based on the date */ public static LabelDateParameterMetadata of(LocalDate date) { return new LabelDateParameterMetadata(date, date.toString()); }