com.formkiq.server.service.dto.ActionValidatorMin Maven / Gradle / Ivy
package com.formkiq.server.service.dto;
/**
* Min Action Validator.
*
*/
public class ActionValidatorMin implements ActionValidator {
/** Int Value. */
private int intValue;
/** Validator Message. */
private String message;
/**
* constructor.
* @param value int
* @param msg String
*/
public ActionValidatorMin(final int value, final String msg) {
this.intValue = value;
this.message = msg;
}
@Override
public String getMessage() {
return this.message;
}
@Override
public ActionValidatorRuleType getRule() {
return ActionValidatorRuleType.MIN;
}
@Override
public Object getValue() {
return Integer.valueOf(this.intValue);
}
}