@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(value=RUNTIME)
@Documented
@Constraint(validatedBy={})
public @interface DecimalMax
BigDecimalBigIntegerCharSequencebyte, short, int, long, and their respective
wrappersdouble and float are not supported due to rounding errors
(some providers might provide some approximative support).
null elements are considered valid.| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value
The
String representation of the max value according to the
BigDecimal string representation. |
public abstract java.lang.String value
String representation of the max value according to the
BigDecimal string representation.public abstract java.lang.String message
public abstract java.lang.Class<? extends Payload>[] payload