![JAR search and dependency download from the Maven repository](/logo.png)
com.github.houbb.valid.jsr.constraint.annotation.AtDigitsConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of valid-jsr Show documentation
Show all versions of valid-jsr Show documentation
The jsr-303 module for valid framework.
package com.github.houbb.valid.jsr.constraint.annotation;
import com.github.houbb.heaven.annotation.ThreadSafe;
import com.github.houbb.valid.api.api.constraint.IConstraint;
import com.github.houbb.valid.core.api.constraint.annotation.AbstractAnnotationConstraint;
import com.github.houbb.valid.jsr.constraint.JsrConstraints;
import javax.validation.constraints.Digits;
/**
* @author binbin.hou
* @since 0.1.1
*/
@ThreadSafe
public class AtDigitsConstraint extends AbstractAnnotationConstraint {
@Override
protected IConstraint buildConstraint(Digits annotation) {
return JsrConstraints.digitsConstraint(annotation.integer(), annotation.fraction());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy