public class MinConstraint extends java.lang.Object implements ValidationConstraint<Min>
Modifier and Type | Field and Description |
---|---|
protected double |
min |
Constructor and Description |
---|
MinConstraint() |
MinConstraint(double min) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Min annotation)
Configures constraint from associated annotation.
|
double |
getMin() |
boolean |
isValid(ValidationConstraintContext vcc,
java.lang.Object value)
Performs validation in context of target object on provided value.
|
void |
setMin(double min) |
static boolean |
validate(java.lang.Object value,
double min) |
public MinConstraint()
public MinConstraint(double min)
public double getMin()
public void setMin(double min)
public void configure(Min annotation)
ValidationConstraint
configure
in interface ValidationConstraint<Min>
public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraint
isValid
in interface ValidationConstraint<Min>
true
if validation passes, otherwise false
.public static boolean validate(java.lang.Object value, double min)
Copyright © 2003-present Jodd Team