@Range
範囲は、long 型、int 型、short 型、char 型、byte 型の値に対して指定できます。 範囲は、下限 from (この値を含む) と上限 to (この値を含む) を指定して定義します。
long
int
short
char
byte
from
to