com.twitter.common.args.constraints
Annotation Type Range


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Range

Annotation that indicates a field must be within a given numeric range.


Required Element Summary
 double lower
          The lower bound on the acceptable range (inclusive).
 double upper
          The upper bound on the acceptable range (inclusive).
 

Element Detail

lower

public abstract double lower
The lower bound on the acceptable range (inclusive).


upper

public abstract double upper
The upper bound on the acceptable range (inclusive).