com.github.houbb.valid.jsr.constraint.annotation.AtDecimalMaxConstraint Maven / Gradle / Ivy
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.DecimalMax;
/**
* @author binbin.hou
* @since 0.1.1
*/
@ThreadSafe
public class AtDecimalMaxConstraint extends AbstractAnnotationConstraint {
@Override
protected IConstraint buildConstraint(DecimalMax annotation) {
return JsrConstraints.decimalMaxConstraint(annotation.inclusive(), annotation.value());
}
}