@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy={}) public @interface DecimalMax
BigDecimal
BigInteger
CharSequence
byte
, 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 |
---|---|
Ciąg znaków |
value
The
String representation of the max value according to the
BigDecimal string representation. |
public abstract String value
String
representation of the max value according to the
BigDecimal
string representation.public abstract String message
public abstract Class>[] groups
public abstract boolean inclusive
true
if the value must be lower or equal to the specified maximum,
false
if the value must be lowerCopyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.