org.chobit.common.validation.SelfCheckValidator Maven / Gradle / Ivy
The newest version!
package org.chobit.common.validation;
import jakarta.validation.ConstraintValidator;
import jakarta.validation.ConstraintValidatorContext;
/**
* 自检验证
*
* @author robin
*/
public class SelfCheckValidator implements ConstraintValidator {
@Override
public boolean isValid(Boolean result, ConstraintValidatorContext context) {
return null != result && result;
}
}