Skip to content

Commit

Permalink
BVAL-192 Adding inclusive flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Jan 25, 2013
1 parent 541258d commit 22ffcd1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/javax/validation/constraints/DecimalMax.java
Expand Up @@ -66,6 +66,15 @@
*/
String value();

/**
* Specifies, whether the specified maximum is inclusive or exclusive.
* By default, it is inclusive.
*
* @return {@code true} if the value must be lower or equal to the specified maximum, {@code false}
* if the value must be lower.
*/
boolean inclusive() default true;

/**
* Defines several {@code @DecimalMax} annotations on the same element
*
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/javax/validation/constraints/DecimalMin.java
Expand Up @@ -66,6 +66,15 @@
*/
String value();

/**
* Specifies, whether the specified minimum is inclusive or exclusive.
* By default, it is inclusive.
*
* @return {@code true} if the value must be higher or equal to the specified minimum, {@code false}
* if the value must be higher.
*/
boolean inclusive() default true;

/**
* Defines several {@code @DecimalMin} annotations on the same element
*
Expand Down

0 comments on commit 22ffcd1

Please sign in to comment.