com.veeker.validation.annotations.CharInvalidImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of veeker-validation Show documentation
Show all versions of veeker-validation Show documentation
Veeker Boot Validation package
The newest version!
package com.veeker.validation.annotations;
import com.veeker.core.utils.RegexUtils;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* @author :qiaoliang
*/
public class CharInvalidImpl implements ConstraintValidator {
@Override
public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
return RegexUtils.checkChar(o.toString().trim());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy