com.github.houbb.valid.jsr.constraint.annotation.AtMinConstraint 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.Min;
/**
* @author binbin.hou
* @since 0.1.1
*/
@ThreadSafe
public class AtMinConstraint extends AbstractAnnotationConstraint {
@Override
protected IConstraint buildConstraint(Min annotation) {
return JsrConstraints.minConstraint(annotation.value());
}
}