top.cutexingluo.tools.common.valid.StatusValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xingtools-pkg-jdk8 Show documentation
Show all versions of xingtools-pkg-jdk8 Show documentation
xingtools 依赖core包,jdk 分类包,对不同的jdk版本提供兼容性
The newest version!
package top.cutexingluo.tools.common.valid;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.lang.annotation.Annotation;
/**
* 初始检验器
*
* @author XingTian
* @version 1.0.0
* @date 2023/7/19 16:12
*/
public class StatusValidator implements ConstraintValidator {
@Override
public void initialize(A constraintAnnotation) {
}
@Override
public boolean isValid(T t, ConstraintValidatorContext constraintValidatorContext) {
return t != null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy