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

net.nemerosa.ontrack.model.form.Memo 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 class Memo extends AbstractText {

    private int rows = 3;

    protected Memo(String name) {
        super("memo", name);
    }

    public static Memo of(String name) {
        return new Memo(name);
    }

    public Memo rows(int value) {
        Validate.isTrue(value > 0);
        this.rows = value;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy