All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.form.AbstractText Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.form;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.Validate;

@EqualsAndHashCode(callSuper = false)
@Data
public abstract class AbstractText> extends AbstractField {

    private int length = 300;

    protected AbstractText(String type, String name) {
        super(type, name);
    }

    public F length(int value) {
        Validate.isTrue(value >= 0);
        this.length = value;
        //noinspection unchecked
        return (F) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy