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

cloud.agileframework.validate.ValidateMsg Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package cloud.agileframework.validate;

import lombok.Builder;
import lombok.Data;

/**
 * @author 佟盟 on 2018/11/15
 */
@Data
@Builder
public class ValidateMsg {
    private String message;
    private String item;
    private Object itemValue;

    public ValidateMsg(String msg, String paramKey, Object paramValue) {
        this.message = msg;
        this.item = paramKey;
        this.itemValue = paramValue;
    }

    public ValidateMsg(String paramKey, Object paramValue) {
        this.item = paramKey;
        this.itemValue = paramValue;
    }

    public void addMessage(String msg) {
        message = message == null ? msg : String.format("%s;%s", message, msg);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy