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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy