-
@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.- Since:
- 0.1
- Author:
- nedis
- See Also:
MaxInt,MaxDouble,Numeric,MaxBigDecimalNumberConstraintValidator,MaxBigIntegerNumberConstraintValidator,MaxByteConstraintValidator,MaxShortConstraintValidator,MaxIntConstraintValidator,MaxLongConstraintValidator,MaxFloatConstraintValidator,MaxDoubleConstraintValidator
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description StringvalueTheStringrepresentation of the max value according to theBigDecimalstring representation.
-
-
-
Element Detail
-
value
String value
TheStringrepresentation of the max value according to theBigDecimalstring representation.- Returns:
- the value the element must be lower or equal to
-
-