com.dream.template.validate.AssertTrueValidator Maven / Gradle / Ivy
package com.dream.template.validate;
import java.util.Map;
public class AssertTrueValidator implements Validator {
@Override
public String validate(Boolean value, Map paramMap) {
if (value != null && !value) {
return (String) paramMap.get("msg");
}
return null;
}
}