net.nemerosa.ontrack.model.form.DateTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.form;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.Validate;
@EqualsAndHashCode(callSuper = false)
@Data
public class DateTime extends AbstractField {
public static DateTime of(String name) {
return new DateTime(name);
}
private int minuteStep = 1;
protected DateTime(String name) {
super("dateTime", name);
}
public DateTime minuteStep(int value) {
Validate.inclusiveBetween(0, 60, value);
this.minuteStep = value;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy