net.sf.staccatocommons.restrictions.check
Annotation Type Between
@Restriction
@Documented
@Retention(value=CLASS)
@Target(value={PARAMETER,FIELD,METHOD})
public @interface Between
An annotation that signals that an annotated must be between a min and a max
value, both inclusive.
This annotation should only be applied to Numbers and primitive
numeric types.
- Author:
- flbulgarelli
- See Also:
Restriction
|
Required Element Summary |
long |
max
|
long |
min
|
min
public abstract long min
- Returns:
- the inclusive lower bound
max
public abstract long max
- Returns:
- the inclusive upper bound
var
public abstract String var
- Returns:
- The variable name of the constrained element, or the empty string
if unspecified. This value may help tools that analyze this
annotation without access to source code.
- Default:
- ""
Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.