-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes={java.math.BigDecimal.class,java.math.BigInteger.class,java.lang.Byte.class,java.lang.Short.class,java.lang.Integer.class,java.lang.Long.class,java.lang.Float.class,java.lang.Double.class}, validatorClass={MaxBigDecimalNumberConstraintValidator.class,MaxBigIntegerNumberConstraintValidator.class,MaxByteConstraintValidator.class,MaxShortConstraintValidator.class,MaxIntConstraintValidator.class,MaxLongConstraintValidator.class,MaxFloatConstraintValidator.class,MaxDoubleConstraintValidator.class}) public @interface MaxNumber
The annotated element must be a number whose value must be lower or equal to the specified maximum.- Author:
- nedis
-
-
Element Detail
-
value
String value
TheStringrepresentation of the max value according to theBigDecimalstring representation.- Returns:
- value the element must be lower or equal to
-
-