com.veeker.validation.annotations.IPInvalidImpl 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 IPInvalidImpl implements ConstraintValidator {
@Override
public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
return StringUtils.matchIp(o.toString().trim());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy