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

com.github.houbb.valid.jsr.constraint.annotation.AtDecimalMinConstraint 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.DecimalMin;

/**
 * @author binbin.hou
 * @since 0.1.1
 */
@ThreadSafe
public class AtDecimalMinConstraint extends AbstractAnnotationConstraint {

    @Override
    protected IConstraint buildConstraint(DecimalMin annotation) {
        return JsrConstraints.decimalMinConstraint(annotation.inclusive(), annotation.value());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy