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

com.github.houbb.valid.jsr.constraint.annotation.AtDigitsConstraint Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
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