@SubtypeOf(value=UnknownVal.class) @Retention(value=RUNTIME) @Target(value={TYPE_PARAMETER,TYPE_USE}) public @interface IntRange
@IntRange(from=0, to=11) int month;
If only one of the to
and from
fields is set, then the other will default to
the max/min value of the type of the variable that is annotated. (In other words, the defaults
Long.MIN_VALUE
and Long.MAX_VALUE
are used only for \code{long}; appropriate
values are used for other types.)