com.veeker.validation.annotations.EmailInvalidImpl 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.StringUtils;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* @author :qiaoliang
*/
public class EmailInvalidImpl implements ConstraintValidator {
@Override
public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
return StringUtils.matchEmail(o.toString().trim());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy