Index: src/main/java/javax/validation/constraints/DecimalMax.java
===================================================================
--- src/main/java/javax/validation/constraints/DecimalMax.java (revision 17762)
+++ src/main/java/javax/validation/constraints/DecimalMax.java (working copy)
@@ -44,6 +44,7 @@
* null
elements are considered valid.
*
* @author Emmanuel Bernard
+ * @author Jaro Kuruc
*/
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
@@ -65,6 +66,15 @@
String value();
/**
+ * Specifies, whether the specified maximum is inclusive or exclusive.
+ * By default, it is inclusive.
+ *
+ * @return exclusive if true
, the element must be lower,
+ * otherwise it must be lower or equal to the specified maximum
+ */
+ boolean exclusive() default false;
+
+ /**
* Defines several @DecimalMax
annotations on the same element
*
* @author Emmanuel Bernard
Index: src/main/java/javax/validation/constraints/DecimalMin.java
===================================================================
--- src/main/java/javax/validation/constraints/DecimalMin.java (revision 17762)
+++ src/main/java/javax/validation/constraints/DecimalMin.java (working copy)
@@ -44,6 +44,7 @@
* null
elements are considered valid
*
* @author Emmanuel Bernard
+ * @author Jaro Kuruc
*/
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
@@ -64,6 +65,15 @@
String value();
/**
+ * Specifies, whether the specified minimum is inclusive or exclusive.
+ * By default, it is inclusive.
+ *
+ * @return exclusive if true
, the element must be higher,
+ * otherwise it must be higher or equal to the specified minimum
+ */
+ boolean exclusive() default false;
+
+ /**
* Defines several @DecimalMin
annotations on the same element
* @see DecimalMin
*